makeSetupHook: support depsTargetTargetPropagated (fix using hooks when strictDeps)#208537
Conversation
78600dd to
07472d2
Compare
c2a9dae to
6bef692
Compare
6bef692 to
edc083d
Compare
There was a problem hiding this comment.
| basic-contains-gdk-pixbuf = let | |
| tested = basic; | |
| in testLib.runTest "basic-contains-gdk-pixbuf" ( | |
| testLib.skip stdenv.isDarwin '' | |
| ${expectSomeLineContainingYInFileXToMentionZ "${tested}/bin/foo" "GDK_PIXBUF_MODULE_FILE" "${lib.getLib librsvg}/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache"} | |
| ${expectSomeLineContainingYInFileXToMentionZ "${tested}/libexec/bar" "GDK_PIXBUF_MODULE_FILE" "${lib.getLib librsvg}/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache"} | |
| basic-contains-gdk-pixbuf = testLib.runTest "basic-contains-gdk-pixbuf" ( | |
| testLib.skip stdenv.isDarwin '' | |
| ${expectSomeLineContainingYInFileXToMentionZ "${basic}/bin/foo" "GDK_PIXBUF_MODULE_FILE" "${lib.getLib librsvg}/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache"} | |
| ${expectSomeLineContainingYInFileXToMentionZ "${basic}/libexec/bar" "GDK_PIXBUF_MODULE_FILE" "${lib.getLib librsvg}/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache"} |
There was a problem hiding this comment.
@jtojnar what do you think? since you added these tests
pkgs/stdenv/generic/setup.sh
Outdated
There was a problem hiding this comment.
Rest of the fixupPhase function does not seem to use any of these variables (substituteAll only captures environment variables) so this looks good to me.
There was a problem hiding this comment.
Maybe move the comment above then. I was quite confused until I noticed it.
Personally, I would just rip the band-aid off. I would not expect this to be very prevalent.
There was a problem hiding this comment.
Maybe move the comment above then. I was quite confused until I noticed it.
this comment and the librsvg above it are closer now after rearranging the list
Personally, I would just rip the band-aid off. I would not expect this to be very prevalent.
Should be a separate PR
bc38703 to
ddfe275
Compare
172f7f5 to
11b50f4
Compare
11b50f4 to
2ba4434
Compare
a801fc2 to
ef6495b
Compare
a286a76 to
3ec0c3b
Compare
|
Should every instance of e.g. Cargo and pip be from buildPackages, as makeWrapper is? |
No, thats just a workaround for hooks in buildInputs / hook in nativeBuildInputs but splicing not working |
fixup phase for makeSetupHook
remove unused input add test for GDK_PIXBUF_MODULE_FILE run tests with strictDeps if the tests work with strictDeps then they work with non strictDeps
3ec0c3b to
680309f
Compare
Closes #49132
Description of changes
Things done
sandbox = trueset innix.conf? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)nixos/doc/manual/md-to-db.shto update generated release notes