Skip to content

Instantly share code, notes, and snippets.

@LnL7
Created December 28, 2019 19:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LnL7/9ba66b5079d239f9ecabc46a9c649464 to your computer and use it in GitHub Desktop.
Save LnL7/9ba66b5079d239f9ecabc46a9c649464 to your computer and use it in GitHub Desktop.
$ 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