Last active
December 11, 2016 16:17
-
-
Save cleverca22/fcd3e6d18073804b9357a26c468aaa70 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[clever@amd-nixos:~/apps/arcane-chat]$ nix-build simple-test.nix -o simple-test && cat simple-test | |
these derivations will be built: | |
/nix/store/nvz99fh10gz7lp89162vygqjbbg06s7i-filename.drv | |
building path(s) ‘/nix/store/w539y2s8hnn93kf1qdnskbj9xig1rqcv-filename’ | |
/nix/store/w539y2s8hnn93kf1qdnskbj9xig1rqcv-filename | |
#!/nix/store/a6gkm5vdylpjnsp9wzcb0c7kz11a3pak-bash-4.3-p46/bin/bash | |
patchelf --interpreter "/nix/store/54k2pd57hqs7bz6dam7aw05slry9zzhh-glibc-2.24/lib/ld-linux-x86-64.so.2" --set-rpath /nix/store/pm42jf0nl5ak4xzixvsxarsc6401lxas-zlib-1.2.8/lib $1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
with import <nixpkgs> {}; | |
runCommand "filename" { buildInputs = [ gcc ]; } '' | |
cat <<EOF > $out | |
#!${stdenv.shell} | |
patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" --set-rpath ${lib.makeLibraryPath [ zlib ]} \$1 | |
EOF | |
chmod +x $out | |
'' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment