diff --git a/derivations/0_template/default.nix b/derivations/0_template/default.nix new file mode 100644 index 00000000..027f8259 --- /dev/null +++ b/derivations/0_template/default.nix @@ -0,0 +1,52 @@ +{ + lib, + stdenv, + stdenvNoCC, +}: +stdenv.mkDerivation { + pname = "TEMPLATE"; + version = ""; + + src = ./.; + + dontConfigure = true; + dontBuild = true; + doCheck = false; + + installPhase = '' + runHook preInstall + + mkdir -p $out + touch $out/TEMPLATE + + runHook postInstall + ''; + + meta = with lib; { + description = "TEMPLATE"; + homepage = "TEMPLATE"; + license = licenses.mit; + }; +} +# Or without cc: +# stdenvNoCC.mkDerivation { +# pname = "TEMPLATE"; +# version = ""; +# +# src = ./.; +# +# installPhase = '' +# runHook preInstall +# +# mkdir -p $out +# touch $out/TEMPLATE +# +# runHook postInstall +# ''; +# +# meta = with lib; { +# description = "TEMPLATE"; +# homepage = "TEMPLATE"; +# license = licenses.mit; +# }; +# }