-
-
Notifications
You must be signed in to change notification settings - Fork 15.5k
vscode,vscode-insiders: fix insiders build #49716
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
1309169
to
bbe650d
Compare
fa0fd1a
to
ad064c5
Compare
@eadwu Also if I were to override vscode with |
The vscodeInsiders = (super.vscode.override {
isInsiders = true;
}).overrideAttrs(oldAttrs: rec {
name = "vscode-insiders-${version}";
version = "1541336565";
src = self.pkgs.fetchurl {
name = "VSCode_latest_linux-x64.tar.gz";
url = "https://vscode-update.azurewebsites.net/latest/linux-x64/insider";
sha256 = "0angszy5rp397w3nxa3bqlpylyi9aqdlixzchlg6wlpq9rrzqspy";
};
}); |
ad064c5
to
4a01d44
Compare
4a01d44
to
e26f4f2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me
e26f4f2
to
d41e868
Compare
@@ -1,9 +1,9 @@ | |||
{ stdenv, lib, fetchurl, unzip, atomEnv, makeDesktopItem, | |||
gtk2, wrapGAppsHook, libXScrnSaver, libxkbfile, libsecret }: | |||
gtk2, wrapGAppsHook, libXScrnSaver, libxkbfile, libsecret, | |||
isInsiders ? false }: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How does one actually set this? I was hoping there would be vscode
and vscode-insiders
packages, but no suck luck.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here's my overlay, not really deterministic but gets me my nightly releases.
vscode = (super.vscode.override {
isInsiders = true;
}).overrideAttrs(_: rec {
name = "${pname}-${version}";
pname = "vscode-insiders";
version = "nightly";
src = builtins.fetchurl {
name = "VSCode_latest_linux-x64.tar.gz";
url = "https://vscode-update.azurewebsites.net/latest/linux-x64/insider";
};
});
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, I see, I'll do the same, thanks!
Motivation for this change
Channel and version are basically just static so they were moved into the derivation and added isInsiders for the specific build fix.
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)