Created
July 24, 2020 14:51
-
-
Save Mic92/cdace44afe33176054fa1edccf1e1a92 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
with import <nixpkgs> {}; | |
let | |
shell = stdenv.mkDerivation { | |
name = "env"; | |
dontUnpack = true; | |
installPhase = "touch $out"; | |
buildInputs = [ | |
tree | |
]; | |
}; | |
in pkgs.writeShellScript "foo" '' | |
${pkgs.nix}/bin/nix-shell ${shell.drvPath} | |
'' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment