add more pahses

This commit is contained in:
Christian Ulrich 2019-07-17 20:49:14 +02:00
parent 472512b710
commit 8173a2e886
No known key found for this signature in database
GPG Key ID: 8241BE099775A097
1 changed files with 18 additions and 2 deletions

View File

@ -1,7 +1,19 @@
{ stdenv, nim }: { stdenv, nim }:
{ name, src, nimDeps ? [], nativeBuildInputs ? [], buildInputs ? [], {
patches ? [], patchPhase ? "", ... }: name,
src,
nimDeps ? [],
nativeBuildInputs ? [],
buildInputs ? [],
patches ? [],
patchPhase ? "",
preBuild ? "",
postBuild ? "",
preInstall ? "",
postInstall ? "",
...
}:
with stdenv.lib; with stdenv.lib;
@ -40,6 +52,10 @@ stdenv.mkDerivation {
buildInputs = rBuildInputs; buildInputs = rBuildInputs;
nimDeps = nimDeps; nimDeps = nimDeps;
patchPhase = patchPhase; patchPhase = patchPhase;
preBuild = preBuild;
postBuild = postBuild;
preInstall = preInstall;
postInstall = postInstall;
LD_LIBRARY_PATH = makeLibraryPath (rBuildInputs ++ rNativeBuildInputs); LD_LIBRARY_PATH = makeLibraryPath (rBuildInputs ++ rNativeBuildInputs);
buildPhase = '' buildPhase = ''