all-packages.nix: provide a variant of Darcs that includes the executable, but not the library
The reduced 'darcs' derivation is supposed to be run-time independent of the Haskell compiler. Unfortunately, this isn't quite true yet because the HTTP package bakes its own store path into the library. This causes Darcs -- which links the HTTP library statically -- to depend on 'HTTP', which in turn depends on lot of other Haskell stuff. Patching HTTP to get rid of that reference looks feasible, though.
This commit is contained in:
parent
76a5e89a1c
commit
b58e991272
|
@ -6813,7 +6813,14 @@ let
|
||||||
|
|
||||||
d4x = callPackage ../applications/misc/d4x { };
|
d4x = callPackage ../applications/misc/d4x { };
|
||||||
|
|
||||||
darcs = lib.setName "darcs-${haskellPackages.darcs.version}" haskellPackages.darcs;
|
darcs = haskellPackages.darcs.override {
|
||||||
|
# A variant of the Darcs derivation that containts only the executable and
|
||||||
|
# thus has no dependencies on other Haskell packages.
|
||||||
|
cabal = { mkDerivation = x: rec { final = haskellPackages.cabal.mkDerivation (self: (x final) // {
|
||||||
|
isLibrary = false;
|
||||||
|
configureFlags = "-f-library"; }); }.final;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
darktable = callPackage ../applications/graphics/darktable {
|
darktable = callPackage ../applications/graphics/darktable {
|
||||||
inherit (gnome) GConf libglade;
|
inherit (gnome) GConf libglade;
|
||||||
|
|
Loading…
Reference in New Issue