Fix nix-serve-ng.cabal
… to use `pkgconfig-depends` instead of `extra-libraries`. The former works better with both `cabal` and `cabal2nix`
This commit is contained in:
parent
01167e8dcb
commit
c8d0b47a7a
@ -55,8 +55,8 @@ executable nix-serve-ng
|
||||
, warp
|
||||
, warp-tls
|
||||
|
||||
extra-libraries: nixstore
|
||||
, nixutil
|
||||
pkgconfig-depends:
|
||||
nix-store
|
||||
|
||||
if os(darwin)
|
||||
extra-libraries: c++
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{ mkDerivation, base, base16, base32, bytestring, charset
|
||||
, http-types, lib, managed, megaparsec, mtl, network, nixstore
|
||||
, nixutil, optparse-applicative, vector, wai, wai-extra, warp
|
||||
, http-types, managed, megaparsec, mtl, network, nix
|
||||
, optparse-applicative, stdenv, vector, wai, wai-extra, warp
|
||||
, warp-tls
|
||||
}:
|
||||
mkDerivation {
|
||||
@ -13,7 +13,7 @@ mkDerivation {
|
||||
base base16 base32 bytestring charset http-types managed megaparsec
|
||||
mtl network optparse-applicative vector wai wai-extra warp warp-tls
|
||||
];
|
||||
executableSystemDepends = [ nixstore nixutil ];
|
||||
executablePkgconfigDepends = [ nix ];
|
||||
description = "A drop-in replacement for nix-serve that's faster and more stable";
|
||||
license = lib.licenses.asl20;
|
||||
license = stdenv.lib.licenses.asl20;
|
||||
}
|
||||
|
||||
@ -12,10 +12,7 @@ let
|
||||
(haskellPackagesNew: haskellPackagesOld: {
|
||||
nix-serve-ng =
|
||||
pkgsNew.haskell.lib.overrideCabal
|
||||
(haskellPackagesNew.callPackage ./nix/nix-serve-ng.nix {
|
||||
nixstore = pkgsNew.nix;
|
||||
nixutil = pkgsNew.nix;
|
||||
})
|
||||
(haskellPackagesNew.callPackage ./nix/nix-serve-ng.nix { })
|
||||
(old: {
|
||||
executableSystemDepends = (old.executableSystemDepends or []) ++ [
|
||||
pkgsNew.boost.dev
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user