-
-
Notifications
You must be signed in to change notification settings - Fork 15.2k
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
[WIP] vscodium: init at 1.33.1 #60423
Conversation
TBD(?) (maybe in another PR?):
|
Should the target branch be staging? |
This is not a source build, so it does the same thing as cc @eadwu
Definitely no. There is no mass rebuild here, so this goes to master. |
This looks fine, haven't built or tested it though. |
To be honest, I'm not sure why stanislas@nixpsla ~/nixpkgs> nix-build $NIXPKGS -A vscodium
these derivations will be built:
/nix/store/xjmg1ilpjny59s3pla2f605wc474vk8p-vscodium-1.33.1.drv
building '/nix/store/xjmg1ilpjny59s3pla2f605wc474vk8p-vscodium-1.33.1.drv'...
unpacking sources
unpacking source archive /nix/store/q8kp39vj2ifbl1mzbasf1lhlmjv56nyx-VSCodium_1.33.1_linux-x64.tar.gz
unpacker produced multiple directories
builder for '/nix/store/xjmg1ilpjny59s3pla2f605wc474vk8p-vscodium-1.33.1.drv' failed with exit code 1
error: build of '/nix/store/xjmg1ilpjny59s3pla2f605wc474vk8p-vscodium-1.33.1.drv' failed The archive's architecture is the same though, the top-level directory just has a different name. |
I checked the expressions for |
This would be a different story if you move to source based builds for |
Do you have good deduplication examples I could learn from? 🙂 |
Good question! I think |
(I'll squash everything later) So I tried to do something, both vscodium and vscode can build atm but I am wondering how I can access variables from |
You could put those definitions into a separate "common.nix" as an attrset and then import that. |
With my latest commit: error: anonymous function at /home/stanislas/nixpkgs/pkgs/applications/editors/vscode/generic.nix:1:1 called without required argument 'sha256', at /home/stanislas/nixpkgs/lib/customisation.nix:69:12 If I drop rec as you suggested above:
|
@angristan You can drop |
There is also |
OK, thanks. What's pname? Also I still have this issue with |
Just another way to set name with version. These two are equivalent: stdenv.mkDerivation {
name = "example-1.0.0";
# ...
} stdenv.mkDerivation {
pname = "example";
version = "1.0.0";
# ...
} |
Can squash the current progress then. Ideally we want to see that the deduplication doesn't change the hash of the derivation for vscode (the "
Yes. Though, I think we can leave it without it. The pieces for |
Can you clarify this? I agree with " Ideally we want to see that the deduplication doesn't change the hash of the derivation for vscode", but how? ''the "name to pname" change will need to be split off before we can see that'' -> does it change the derivation? |
Yes, in a minor way:
Easy to see that this is an effect of adding additional
I guess we just run similar diff on |
|
Should I update both? |
Co-Authored-By: Dmitry Kalinkin <dmitry.kalinkin@gmail.com>
Co-Authored-By: Dmitry Kalinkin <dmitry.kalinkin@gmail.com>
Co-Authored-By: Dmitry Kalinkin <dmitry.kalinkin@gmail.com>
Co-Authored-By: Dmitry Kalinkin <dmitry.kalinkin@gmail.com>
Co-Authored-By: Dmitry Kalinkin <dmitry.kalinkin@gmail.com>
Co-Authored-By: Dmitry Kalinkin <dmitry.kalinkin@gmail.com>
setting nixpkgs/pkgs/stdenv/generic/setup.sh Lines 885 to 886 in 74d31d8
|
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.
This seems to be in a good shape now.
cc @Synthetica9 as maintainer (sorry, missed you earlier) |
@angristan @veprbl Awesome, thank you! |
Thank you everyone, especially @veprbl for your help and patience on this PR. 🙂 |
(cherry picked from commit e4b146b)
Motivation for this change
Resolves: #59028
Things done
Based on the existing vscode expression
src
sourceRoot
because different archive formatlicense
(MIT)sandbox
innix.conf
on non-NixOS)nix-shell -p nix-review --run "nix-review wip"
./result/bin/
)nix path-info -S
before and after)I'm very new to Nix packaging so please tell me if I made a mess 😄