Derivation: Update template
This commit is contained in:
52
derivations/0_template/default.nix
Normal file
52
derivations/0_template/default.nix
Normal file
@ -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;
|
||||||
|
# };
|
||||||
|
# }
|
Reference in New Issue
Block a user