Skip to content

Instantly share code, notes, and snippets.

@srhb
Created May 18, 2020 04:35
Show Gist options
  • Save srhb/eb7d09ff6a7cf6af1e46d798877650e4 to your computer and use it in GitHub Desktop.
Save srhb/eb7d09ff6a7cf6af1e46d798877650e4 to your computer and use it in GitHub Desktop.
{ pkgs ? import <nixpkgs> {} }:
pkgs.stdenv.mkDerivation {
name = "foo";
builder = builtins.toFile "builder.sh" ''
echo "foo" > $out
'';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment