Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- with import ./. {};
- stdenv.mkDerivation {
- name = "foo";
- buildInputs = [ nixUnstable ];
- unpackPhase = ":";
- buildPhase = ''
- readlink -f $(type -P nix-store)
- export HOME=$NIX_BUILD_TOP/ROOT/home/foo
- export NIX_REMOTE=local?root=$NIX_BUILD_TOP/ROOT
- nix-store --add ${stdenv} ${hello.src}
- nix-instantiate ${./.} -A hello
- nix-store -r $(nix-instantiate ${./.} -A hello) --option build-use-substitutes false
- '';
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement