Advertisement
Guest User

Untitled

a guest
Nov 30th, 2020
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. # default.nix
  2. with import <nixpkgs> {};
  3.  
  4. derivation {
  5. name = "dev";
  6. builder = "${bash}/bin/bash";
  7. args = [ ./builder.sh ];
  8. buildInputs = [ vim git docker kubectl ];
  9. system = builtins.currentSystem;
  10. }
  11.  
  12. # builder.sh
  13. set -e
  14. unset PATH
  15. for p in $buildInputs; do
  16. export PATH=$p/bin${PATH:+:}$PATH
  17. done
  18.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement