haskell-generic-builder: bake the package name and version into --docdir
If we use a --docdir that's not specific to the package, then different builds
will install their license files into the same location, which leads to file
collisions if those are ever joined into the same environment.
Fixes https://github.com/NixOS/nixpkgs/issues/35024.
commit5c80983e75a749b8e90feb9e0b676ff04daa4776
authorPeter Simons <simons@cryp.to>
dateFri 22 Jun 2018, 12:50 (8 years ago)
parent1486fee
pkgs/development/haskell-modules/generic-builder.nix+1−1
@@ -98,7 +98,7 @@ let
9898 else "package-conf";
9999
100100 # the target dir for haddock documentation
101− docdir = docoutput: docoutput + "/share/doc";
101+ docdir = docoutput: docoutput + "/share/doc/" + pname + "-" + version;
102102
103103 newCabalFileUrl = "http://hackage.haskell.org/package/${pname}-${version}/revision/${revision}.cabal";
104104 newCabalFile = fetchurl {