neovim: Add nix phase snippets

This commit is contained in:
Simon Bruder 2021-07-17 14:23:32 +02:00
parent 00a919d6d7
commit faf9a044fd
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC

View file

@ -1,3 +1,35 @@
snippet sha256 "dummy sha256 hash"
sha256 = "0000000000000000000000000000000000000000000000000000";
endsnippet
snippet unpackPhase "unpackPhase template"
unpackPhase = ''
runHook preUnpack
$1
runHook postUnpack
'';
endsnippet
snippet configurePhase "configurePhase template"
configurePhase = ''
runHook preConfigure
$1
runHook postConfigure
'';
endsnippet
snippet buildPhase "buildPhase template"
buildPhase = ''
runHook preBuild
$1
runHook postBuild
'';
endsnippet
snippet installPhase "installPhase template"
configurePhase = ''
runHook preInstall
$1
runHook postInstall
'';
endsnippet