Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

23 lines
483 B
Nix
Raw Permalink Normal View History

2025-10-09 14:15:47 +02:00
{ ... }:
{
name = "nix-ld";
nodes.machine =
{ config, 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 ${config.programs.nix-ld.package}/nix-support/ldpath)
'')
];
};
testScript = ''
start_all()
machine.succeed("hello")
'';
}