Advertisement
Guest User

Untitled

a guest
Dec 5th, 2017
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  1. ➜ ~ cd $(mktemp -d)
  2. ➜ tmp.PN7dEmBP vim simple.c
  3. ➜ tmp.PN7dEmBP vim simple_builder.sh
  4. ➜ tmp.PN7dEmBP nix-repl
  5. Welcome to Nix version 1.11.15. Type :? for help.
  6.  
  7. nix-repl> :l <nixpkgs>
  8. Added 8100 variables.
  9.  
  10. nix-repl> simple = derivation { name = "simple"; builder = "${bash}/bin/bash"; args = [ ./simple_builder.sh ]; gcc = gcc; coreutils = coreutils; src = ./simple.c; system = builtins.currentSystem; }
  11.  
  12. nix-repl> :b simple
  13. these derivations will be built:
  14. /nix/store/ck6a571bvpgj4iw1afiwzp409law6ji5-simple.drv
  15. building path(s) ‘/nix/store/68xymm5wq1zv6z3kr0qwplr354ckxq1q-simple’
  16. /nix/store/9sll05wmn9b05f0pm1pwfmmq92fg0syh-simple.c: In function 'main':
  17. /nix/store/9sll05wmn9b05f0pm1pwfmmq92fg0syh-simple.c:2:3: warning: implicit declaration of function 'puts' [-Wimplicit-function-declaration]
  18. puts("Simple!");
  19. ^~~~
  20. /nix/store/wh6raqzph3kb75n7wqyp327wnwy5zcid-gcc-wrapper-6.4.0/bin/as: assembler (clang) not installed
  21. builder for ‘/nix/store/ck6a571bvpgj4iw1afiwzp409law6ji5-simple.drv’ failed with exit code 1
  22. error: build of ‘/nix/store/ck6a571bvpgj4iw1afiwzp409law6ji5-simple.drv’ failed
  23.  
  24. nix-repl>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement