2015-09-03 17:49:50 +02:00
|
|
|
{ mkDerivation, base, deepseq, doctest, lens, pretty, regex-posix
|
|
|
|
, stdenv, fetchFromGitHub, QuickCheck
|
2015-09-02 17:29:20 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
mkDerivation rec {
|
|
|
|
pname = "language-nix";
|
2015-09-03 17:49:50 +02:00
|
|
|
version = "20180903";
|
2015-09-02 17:29:20 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nixos";
|
|
|
|
repo = "cabal2nix";
|
|
|
|
rev = "v${version}";
|
2015-09-03 17:49:50 +02:00
|
|
|
sha256 = "1qb7h4bgd1gv025hdbrpwaajpfkyz95id7br3k3danrj1havr9ja";
|
2015-09-02 17:29:20 +02:00
|
|
|
};
|
|
|
|
postUnpack = "sourceRoot+=/${pname}";
|
|
|
|
libraryHaskellDepends = [
|
2015-09-03 17:49:50 +02:00
|
|
|
base deepseq lens pretty regex-posix
|
|
|
|
];
|
|
|
|
testHaskellDepends = [
|
|
|
|
base deepseq doctest lens pretty regex-posix QuickCheck
|
2015-09-02 17:29:20 +02:00
|
|
|
];
|
|
|
|
homepage = "https://github.com/nixos/cabal2nix#readme";
|
|
|
|
description = "Data types and useful functions to represent and manipulate the Nix language";
|
|
|
|
license = stdenv.lib.licenses.bsd3;
|
|
|
|
maintainers = with stdenv.lib.maintainers; [ simons ];
|
|
|
|
}
|