From 8173a2e886e8aa1b2f909a1e13fdc1c02903b47f Mon Sep 17 00:00:00 2001 From: Christian Ulrich Date: Wed, 17 Jul 2019 20:49:14 +0200 Subject: [PATCH] add more pahses --- pkgs/nim-packages/generic.nix | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/pkgs/nim-packages/generic.nix b/pkgs/nim-packages/generic.nix index ab9e1c3..0387575 100644 --- a/pkgs/nim-packages/generic.nix +++ b/pkgs/nim-packages/generic.nix @@ -1,7 +1,19 @@ { stdenv, nim }: -{ name, src, nimDeps ? [], nativeBuildInputs ? [], buildInputs ? [], - patches ? [], patchPhase ? "", ... }: +{ + name, + src, + nimDeps ? [], + nativeBuildInputs ? [], + buildInputs ? [], + patches ? [], + patchPhase ? "", + preBuild ? "", + postBuild ? "", + preInstall ? "", + postInstall ? "", + ... +}: with stdenv.lib; @@ -40,6 +52,10 @@ stdenv.mkDerivation { buildInputs = rBuildInputs; nimDeps = nimDeps; patchPhase = patchPhase; + preBuild = preBuild; + postBuild = postBuild; + preInstall = preInstall; + postInstall = postInstall; LD_LIBRARY_PATH = makeLibraryPath (rBuildInputs ++ rNativeBuildInputs); buildPhase = ''