nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 31 lines 597 B view raw
1{ 2 lib, 3 installShellFiles, 4 runCommandLocal, 5}: 6 7runCommandLocal "install-shell-files--install-bin-output" 8 { 9 outputs = [ 10 "out" 11 "bin" 12 ]; 13 nativeBuildInputs = [ installShellFiles ]; 14 meta.platforms = lib.platforms.all; 15 } 16 '' 17 mkdir -p bin 18 echo "echo hello za warudo" > bin/hello 19 echo "echo amigo me gusta mucho" > bin/amigo 20 21 installBin bin/* 22 23 # assert it didn't go into $out 24 [[ ! -f $out/bin/amigo ]] 25 [[ ! -f $out/bin/hello ]] 26 27 cmp bin/amigo ''${!outputBin}/bin/amigo 28 cmp bin/hello ''${!outputBin}/bin/hello 29 30 touch $out 31 ''