mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
00d0418804
This commit adds a test for the newly added support for __structuredAttrs in autoPatchelf(hook). It copied a reasonably small-closure binary derivation that makes use of autoPatchelf, stripped it down for the purpose of the test, and check that autoPatchelf correctly set the interpreter and runpath whether __structuredAttrs is set to true or not.
7 lines
214 B
Nix
7 lines
214 B
Nix
{ lib, callPackage }:
|
|
|
|
lib.recurseIntoAttrs {
|
|
withStructuredAttrs = callPackage ./package.nix { __structuredAttrs = true; };
|
|
withoutStructuredAttrs = callPackage ./package.nix { __structuredAttrs = false; };
|
|
}
|