hnix/project.nix

30 lines
870 B
Nix
Raw Normal View History

{ 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-27 23:32:03 +01:00
let
inherit (builtins) filterSource;
inherit (pkgs.lib) elem;
in
mkDerivation {
pname = "hnix";
2015-10-27 23:32:03 +01:00
version = "0.2.3";
src = let
notNamed = list: name: !(elem (baseNameOf name) list);
in filterSource (n: _: notNamed [".git" "dist" "benchmarks"] n) ./.;
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;
}