haskell-nix-paths: initial version 1

This commit is contained in:
Peter Simons 2015-09-09 11:30:53 +02:00
parent 2017d56edf
commit 1e5e17eeac
2 changed files with 20 additions and 0 deletions

View File

@ -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 {};

View File

@ -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 ];
}