hnix/project.nix

33 lines
1016 B
Nix

{ mkDerivation, ansi-wl-pprint, base, containers, data-fix, deepseq
, parsers, stdenv, tasty, tasty-hunit, tasty-th, text, transformers
, trifecta, unordered-containers, criterion, pkgs, deriving-compat
}:
let
inherit (builtins) filterSource;
inherit (pkgs.lib) elem;
in
mkDerivation {
pname = "hnix";
version = "0.3.4";
src = let
notNamed = list: name: !(elem (baseNameOf name) list);
in filterSource (n: _: notNamed [".git" "dist" "benchmarks"] n) ./.;
isLibrary = true;
isExecutable = true;
libraryHaskellDepends = [
ansi-wl-pprint base containers data-fix deepseq parsers text
transformers trifecta unordered-containers criterion deriving-compat
];
executableHaskellDepends = [
ansi-wl-pprint base containers data-fix deepseq
];
testHaskellDepends = [
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;
}