neovim: Add nix phase snippets
This commit is contained in:
parent
00a919d6d7
commit
faf9a044fd
|
@ -1,3 +1,35 @@
|
||||||
snippet sha256 "dummy sha256 hash"
|
snippet sha256 "dummy sha256 hash"
|
||||||
sha256 = "0000000000000000000000000000000000000000000000000000";
|
sha256 = "0000000000000000000000000000000000000000000000000000";
|
||||||
endsnippet
|
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
|
||||||
|
|
Loading…
Reference in a new issue