Skip to content

Instantly share code, notes, and snippets.

@domenkozar
Last active August 14, 2018 18:26
Show Gist options
  • Save domenkozar/766c926b6a4427d3828a0ca9600ca6cb to your computer and use it in GitHub Desktop.
Save domenkozar/766c926b6a4427d3828a0ca9600ca6cb to your computer and use it in GitHub Desktop.
with import <nixpkgs> {};
stdenv.mkDerivation {
name = "foo";
src = builtins.path {
name = "foo";
path = ./.;
};
buildPhase = ":";
installPhase = "mkdir -p $out/bin && touch $out/bin/foo";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment