Skip to content

Instantly share code, notes, and snippets.

@Twey

Twey/shell.nix Secret

Created September 10, 2019 17:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Twey/87f06305be605e36acb60078192dcbc3 to your computer and use it in GitHub Desktop.
Save Twey/87f06305be605e36acb60078192dcbc3 to your computer and use it in GitHub Desktop.
with import <nixpkgs> { };
let
file = runCommand "file" {} ''echo "false" > $out'';
func = path: type: builtins.fromJSON (builtins.readFile file);
in
stdenv.mkDerivation {
name = "pinning-test";
src = builtins.filterSource func ./.;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment