Skip to content

Instantly share code, notes, and snippets.

@cleverca22
Created January 26, 2018 03:44
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 cleverca22/13b295f00be5ba146333dbb027bb2898 to your computer and use it in GitHub Desktop.
Save cleverca22/13b295f00be5ba146333dbb027bb2898 to your computer and use it in GitHub Desktop.
rec {
input = fetchFromGitHub { ... };
foo = runCommand "foo" {} ''
cp -vir ${input} $out
cd $out
chmod +w -R .
some bash wizardry to recursively replace X with Y
'';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment