Skip to content

Instantly share code, notes, and snippets.

@cleverca22
Created April 5, 2020 18:04
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/fd8bbec162a139dab79ed9556e5c6c5e to your computer and use it in GitHub Desktop.
Save cleverca22/fd8bbec162a139dab79ed9556e5c6c5e to your computer and use it in GitHub Desktop.
with import <nixpkgs> {};
let
script = writeText "name" ''
foo @bar@ baz
'';
part2 = runCommand "name2" {
bar = "something";
} ''
mkdir $out
substituteAll ${script} $out/thing
'';
in part2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment