From 1e5e17eeac273d03a02ae17f88a625c4d115e275 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Wed, 9 Sep 2015 11:30:53 +0200 Subject: [PATCH] haskell-nix-paths: initial version 1 --- .../haskell-modules/configuration-common.nix | 1 + .../tools/haskell/cabal2nix/nix-paths.nix | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 pkgs/development/tools/haskell/cabal2nix/nix-paths.nix diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix index 7b93293a5eb..334331af7bd 100644 --- a/pkgs/development/haskell-modules/configuration-common.nix +++ b/pkgs/development/haskell-modules/configuration-common.nix @@ -755,6 +755,7 @@ self: super: { zlib = dontCheck super.zlib; # Override the obsolete version from Hackage with our more up-to-date copy. + nix-paths = self.callPackage ../tools/haskell/cabal2nix/nix-paths.nix {}; cabal2nix = self.callPackage ../tools/haskell/cabal2nix/cabal2nix.nix {}; hackage2nix = self.callPackage ../tools/haskell/cabal2nix/hackage2nix.nix {}; language-nix = self.callPackage ../tools/haskell/cabal2nix/language-nix.nix {}; diff --git a/pkgs/development/tools/haskell/cabal2nix/nix-paths.nix b/pkgs/development/tools/haskell/cabal2nix/nix-paths.nix new file mode 100644 index 00000000000..f6d27857ee3 --- /dev/null +++ b/pkgs/development/tools/haskell/cabal2nix/nix-paths.nix @@ -0,0 +1,19 @@ +{ mkDerivation, base, fetchFromGitHub, nix, stdenv }: + +mkDerivation rec { + pname = "nix-paths"; + version = "1"; + src = fetchFromGitHub { + owner = "nixos"; + repo = "cabal2nix"; + rev = "c475c17fa5f8dfc16c694fb0264486f94cbf2c5e"; + sha256 = "0skqdka1ibgwf33b23ibz93g5h6mbv31p1rbqz66j8qgxsvcgrkg"; + }; + postUnpack = "sourceRoot+=/${pname}"; + libraryHaskellDepends = [ base ]; + libraryToolDepends = [ nix ]; + homepage = "https://github.com/nixos/cabal2nix#readme"; + description = "Knowledge of Nix's installation directories"; + license = stdenv.lib.licenses.bsd3; + maintainers = with stdenv.lib.maintainers; [ simons ]; +}