mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 18:23:09 +00:00
bfc002e2f1
* nix-ld: 1.2.1 -> 1.2.2 Diff: https://github.com/mic92/nix-ld/compare/1.2.1...1.2.2 * Update pkgs/os-specific/linux/nix-ld/default.nix Co-authored-by: Pol Dellaiera <pol.dellaiera@protonmail.com> --------- Co-authored-by: Pol Dellaiera <pol.dellaiera@protonmail.com>
18 lines
470 B
Nix
18 lines
470 B
Nix
import ./make-test-python.nix ({ lib, pkgs, ...} :
|
|
{
|
|
name = "nix-ld";
|
|
nodes.machine = { pkgs, ... }: {
|
|
programs.nix-ld.enable = true;
|
|
environment.systemPackages = [
|
|
(pkgs.runCommand "patched-hello" {} ''
|
|
install -D -m755 ${pkgs.hello}/bin/hello $out/bin/hello
|
|
patchelf $out/bin/hello --set-interpreter $(cat ${pkgs.nix-ld}/nix-support/ldpath)
|
|
'')
|
|
];
|
|
};
|
|
testScript = ''
|
|
start_all()
|
|
machine.succeed("hello")
|
|
'';
|
|
})
|