Set more precise meta.position for Haskell packages

This commit is contained in:
Eelco Dolstra
2015-03-27 16:17:48 +01:00
parent 8b2f209838
commit 5c0eb64d43
2 changed files with 15 additions and 12 deletions
@@ -43,7 +43,7 @@
, preFixup ? "", postFixup ? ""
, coreSetup ? false # Use only core packages to build Setup.hs.
, useCpphs ? false
}:
} @ args:
assert pkgconfigDepends != [] -> pkgconfig != null;
assert editedCabalFile != null -> revision != null;
@@ -112,6 +112,8 @@ in
stdenv.mkDerivation ({
name = "${optionalString hasActiveLibrary "haskell-"}${pname}-${version}";
pos = builtins.unsafeGetAttrPos "pname" args;
prePhases = ["setupCompilerEnvironmentPhase"];
preConfigurePhases = ["compileBuildDriverPhase"];
preInstallPhases = ["haddockPhase"];