Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # default.nix
- with import <nixpkgs> {};
- derivation {
- name = "dev";
- builder = "${bash}/bin/bash";
- args = [ ./builder.sh ];
- buildInputs = [ vim git docker kubectl ];
- system = builtins.currentSystem;
- }
- # builder.sh
- set -e
- unset PATH
- for p in $buildInputs; do
- export PATH=$p/bin${PATH:+:}$PATH
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement