Advertisement
Guest User

Untitled

a guest
Aug 17th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. with import ./. {};
  2.  
  3. stdenv.mkDerivation {
  4. name = "foo";
  5. buildInputs = [ nixUnstable ];
  6.  
  7. unpackPhase = ":";
  8.  
  9. buildPhase = ''
  10. readlink -f $(type -P nix-store)
  11.  
  12. export HOME=$NIX_BUILD_TOP/ROOT/home/foo
  13. export NIX_REMOTE=local?root=$NIX_BUILD_TOP/ROOT
  14. nix-store --add ${stdenv} ${hello.src}
  15. nix-instantiate ${./.} -A hello
  16. nix-store -r $(nix-instantiate ${./.} -A hello) --option build-use-substitutes false
  17. '';
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement