From edeffd7c4938a354d1c9c57347e23b2e190826c4 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Sat, 17 May 2014 12:25:23 +0200 Subject: [PATCH] haskell-DrIFT: add version 2.4.2 --- pkgs/development/tools/haskell/DrIFT/default.nix | 16 ++++++++++++++++ pkgs/top-level/haskell-defaults.nix | 1 + pkgs/top-level/haskell-packages.nix | 2 ++ 3 files changed, 19 insertions(+) create mode 100644 pkgs/development/tools/haskell/DrIFT/default.nix diff --git a/pkgs/development/tools/haskell/DrIFT/default.nix b/pkgs/development/tools/haskell/DrIFT/default.nix new file mode 100644 index 000000000000..f0ae57b6287f --- /dev/null +++ b/pkgs/development/tools/haskell/DrIFT/default.nix @@ -0,0 +1,16 @@ +{ cabal, filepath, random }: + +cabal.mkDerivation (self: { + pname = "DrIFT"; + version = "2.4.2"; + sha256 = "1w0wfmrjifidl2qz998ig07afd4p6yp890lwl8as57bay490nakl"; + isLibrary = true; + isExecutable = true; + buildDepends = [ filepath random ]; + meta = { + homepage = "http://repetae.net/computer/haskell/DrIFT/"; + description = "Program to derive type class instances"; + license = self.stdenv.lib.licenses.bsd3; + platforms = self.ghc.meta.platforms; + }; +}) diff --git a/pkgs/top-level/haskell-defaults.nix b/pkgs/top-level/haskell-defaults.nix index 5ccfeff9372a..3c5d50835ea9 100644 --- a/pkgs/top-level/haskell-defaults.nix +++ b/pkgs/top-level/haskell-defaults.nix @@ -52,6 +52,7 @@ ghc722Prefs = self : super : ghc742Prefs self super // { deepseq = self.deepseq_1_3_0_2; + DrIFT = null; # doesn't compile with old GHC versions extensibleExceptions = null; # core package in ghc <= 7.4.x haddock = self.haddock_2_9_4; syb = self.syb_0_4_0; diff --git a/pkgs/top-level/haskell-packages.nix b/pkgs/top-level/haskell-packages.nix index 48b092b783f4..4b577eddaf2b 100644 --- a/pkgs/top-level/haskell-packages.nix +++ b/pkgs/top-level/haskell-packages.nix @@ -2523,6 +2523,8 @@ self : let callPackage = x : y : modifyPrio (newScope self x y); in cpphs = callPackage ../development/tools/misc/cpphs {}; + DrIFT = callPackage ../development/tools/haskell/DrIFT {}; + haddock_2_4_2 = callPackage ../development/tools/documentation/haddock/2.4.2.nix { Cabal = null; }; haddock_2_7_2 = callPackage ../development/tools/documentation/haddock/2.7.2.nix { alex = self.alex_2_3_5; }; haddock_2_9_2 = callPackage ../development/tools/documentation/haddock/2.9.2.nix {};