Skip to content

Instantly share code, notes, and snippets.

@grahamc

grahamc/test.nix Secret

Created April 18, 2019 23:40
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 grahamc/febfe4398170b3d3ca9a64263e2d79c8 to your computer and use it in GitHub Desktop.
Save grahamc/febfe4398170b3d3ca9a64263e2d79c8 to your computer and use it in GitHub Desktop.
let
pkgs = import <nixpkgs> {};
srcWithName = name: pkgs.fetchgit {
inherit name;
url = "https://github.com/grahamc/ish.git";
rev = "7edd7665edf8e33e6847d891d2ff519b492b32dc";
sha256 = "0qjp8f82a09spz8z2idqj3w1lclr19p37877a8jscvss5a14bbda";
};
in pkgs.writeText "example" ''
${srcWithName "hi"}
${srcWithName "there"}
${srcWithName "the"}
${srcWithName "hash"}
${srcWithName "is"}
${srcWithName "unchanged"}
''
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment