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 = ''