2015-10-16 01:33:26 +02:00
|
|
|
{ mkDerivation, ansi-wl-pprint, base, containers, data-fix, parsers
|
|
|
|
, stdenv, tasty, tasty-hunit, tasty-th, text, transformers
|
2015-10-27 23:32:03 +01:00
|
|
|
, trifecta, unordered-containers, cabal-install, pkgs
|
2015-10-16 01:33:26 +02:00
|
|
|
}:
|
2015-10-27 23:32:03 +01:00
|
|
|
|
|
|
|
let
|
|
|
|
inherit (builtins) filterSource;
|
|
|
|
inherit (pkgs.lib) elem;
|
|
|
|
in
|
|
|
|
|
2015-10-16 01:33:26 +02:00
|
|
|
mkDerivation {
|
|
|
|
pname = "hnix";
|
2016-01-24 01:11:26 +01:00
|
|
|
version = "0.3.0";
|
2015-10-27 23:32:03 +01:00
|
|
|
src = let
|
|
|
|
notNamed = list: name: !(elem (baseNameOf name) list);
|
|
|
|
in filterSource (n: _: notNamed [".git" "dist" "benchmarks"] n) ./.;
|
2015-10-16 01:33:26 +02:00
|
|
|
isLibrary = true;
|
|
|
|
isExecutable = true;
|
|
|
|
buildDepends = [
|
|
|
|
ansi-wl-pprint base containers data-fix parsers text transformers
|
|
|
|
trifecta unordered-containers cabal-install
|
|
|
|
];
|
|
|
|
testDepends = [
|
|
|
|
base containers data-fix tasty tasty-hunit tasty-th text
|
|
|
|
];
|
|
|
|
homepage = "http://github.com/jwiegley/hnix";
|
|
|
|
description = "Haskell implementation of the Nix language";
|
|
|
|
license = stdenv.lib.licenses.bsd3;
|
|
|
|
}
|