git.iko.soy/typeable/nixpkgs
on master help sign in
haskell-ng: move configuration know-how out of cabal2nix and into Nixpkgs
commit56616ec0990442b2a425810f2502660c8103db28 authorPeter Simons <simons@cryp.to> dateThu 22 Jan 2015, 14:09 (12 years ago) parent78f3bd5
2 files changed+7−3
pkgs/development/haskell-modules/configuration-common.nix+6 pkgs/development/haskell-modules/hackage-packages.nix+1−3
pkgs/development/haskell-modules/configuration-common.nix+6
@@ -373,6 +373,12 @@ self: super: {
373373 descriptive = self.descriptive_0_0_2; # https://github.com/chrisdone/structured-haskell-mode/issues/94
374374 };
375375
376+ # Expect to find sendmail(1) in $PATH.
377+ mime-mail = appendConfigureFlag super.mime-mail "--ghc-option=-DMIME_MAIL_SENDMAIL_PATH=\"sendmail\"";
378+
379+ # Help the test suite find system timezone data.
380+ tz = overrideCabal super.tz (drv: { preConfigure = "export TZDIR=${pkgs.tzdata}/share/zoneinfo"; });
381+
376382}
377383// {
378384 # Not on Hackage yet.
pkgs/development/haskell-modules/hackage-packages.nix+1−3
@@ -79215,7 +79215,7 @@ self: {
7921579215
7921679216 "mime-mail" = callPackage
7921779217 ({ mkDerivation, base, base64-bytestring, blaze-builder, bytestring
79218− , filepath, hspec, process, random, sendmail ? "sendmail", text
79218+ , filepath, hspec, process, random, text
7921979219 }:
7922079220 mkDerivation {
7922179221 pname = "mime-mail";
@@ -79226,7 +79226,6 @@ self: {
7922679226 random text
7922779227 ];
7922879228 testDepends = [ base blaze-builder bytestring hspec text ];
79229− configureFlags = "--ghc-option=-DMIME_MAIL_SENDMAIL_PATH=\"${sendmail}\"";
7923079229 homepage = "http://github.com/snoyberg/mime-mail";
7923179230 description = "Compose MIME email messages";
7923279231 license = stdenv.lib.licenses.mit;
@@ -114530,7 +114529,6 @@ self: {
114530114529 test-framework-hunit test-framework-quickcheck2 test-framework-th
114531114530 time tzdata unix vector
114532114531 ];
114533− preConfigure = "export TZDIR=${tzdata}/share/zoneinfo";
114534114532 homepage = "https://github.com/nilcons/haskell-tz";
114535114533 description = "Efficient time zone handling";
114536114534 license = stdenv.lib.licenses.asl20;