2018-08-26 20:12:12 +03:00
|
|
|
{ mkDerivation
|
|
|
|
, nixpkgs
|
|
|
|
, stdenv
|
|
|
|
, base
|
2018-10-22 01:09:31 +03:00
|
|
|
, free-algebras
|
2018-08-26 20:12:12 +03:00
|
|
|
}:
|
|
|
|
let
|
|
|
|
lib = nixpkgs.lib;
|
|
|
|
srcFilter = src: path: type:
|
|
|
|
let relPath = lib.removePrefix (toString src + "/") (toString path);
|
|
|
|
in
|
|
|
|
lib.hasPrefix "src" relPath
|
|
|
|
|| lib.hasPrefix "test" relPath
|
|
|
|
|| lib.any
|
|
|
|
(a: a == relPath)
|
2018-10-22 01:09:31 +03:00
|
|
|
[ "Setup.hs" "cabal.project" "ChangeLog.md" "free-category.cabal" "LICENSE"];
|
2018-08-26 20:12:12 +03:00
|
|
|
in
|
|
|
|
mkDerivation {
|
2018-10-22 01:09:31 +03:00
|
|
|
pname = "free-category";
|
|
|
|
version = "0.0.1.0";
|
2018-08-26 20:12:12 +03:00
|
|
|
src = lib.cleanSourceWith { filter = srcFilter ./.; src = ./.; };
|
|
|
|
libraryHaskellDepends = [
|
|
|
|
base
|
2018-10-22 01:09:31 +03:00
|
|
|
free-algebras
|
2018-08-26 20:12:12 +03:00
|
|
|
];
|
|
|
|
libraryToolDepends = [ ];
|
|
|
|
testHaskellDepends = [
|
|
|
|
base
|
|
|
|
];
|
|
|
|
homepage = "https://github.com/coot/free-algebras#readme";
|
|
|
|
license = stdenv.lib.licenses.mpl20;
|
|
|
|
enableSeparateDocOutput = false;
|
|
|
|
}
|