2022-03-30 09:31:56 +00:00
|
|
|
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
|
2022-05-18 14:49:53 +00:00
|
|
|
patchelf $out/bin/hello --set-interpreter $(cat ${pkgs.nix-ld}/nix-support/ldpath)
|
2022-03-30 09:31:56 +00:00
|
|
|
'')
|
|
|
|
];
|
|
|
|
};
|
|
|
|
testScript = ''
|
|
|
|
start_all()
|
2022-12-28 21:21:41 +00:00
|
|
|
machine.succeed("hello")
|
2022-03-30 09:31:56 +00:00
|
|
|
'';
|
|
|
|
})
|