Created
December 28, 2019 19:48
-
-
Save LnL7/9ba66b5079d239f9ecabc46a9c649464 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
$ ls -l foo/Applications/ | |
dr-xr-xr-x 3 root wheel 96 Jan 1 1970 firefox.app | |
$ nix-build -E 'with import ./. {}; runCommand "foo" {} "mkdir -p $out/Applications/foo"' | |
$ nix-env -p ./foo -i ./result | |
$ ls -l foo/Applications/ | |
lrwxr-xr-x 1 root wheel 81 Jan 1 1970 firefox.app -> /nix/store/12p7g0a28rg3prs7xdvv9qpnn0mgkki7-firefox-71.0/Applications/firefox.app | |
lrwxr-xr-x 1 root wheel 64 Jan 1 1970 foo -> /nix/store/y1j4bwiid7ydj1fcj660hpmwlzwlbq7s-foo/Applications/foo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment