1
1
mirror of https://github.com/coot/free-category.git synced 2024-09-11 14:17:30 +03:00
free-category/pkg.nix
Marcin Szamotulski 82dfbaaeba
Initial commit
2018-08-26 19:12:12 +02:00

33 lines
767 B
Nix

{ mkDerivation
, nixpkgs
, stdenv
, base
, categories
}:
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)
[ "Setup.hs" "cabal.project" "ChangeLog.md" "package.yaml" "LICENSE"];
in
mkDerivation {
pname = "free-algebras";
version = "0.0.4.0";
src = lib.cleanSourceWith { filter = srcFilter ./.; src = ./.; };
libraryHaskellDepends = [
base
];
libraryToolDepends = [ ];
testHaskellDepends = [
base
];
homepage = "https://github.com/coot/free-algebras#readme";
license = stdenv.lib.licenses.mpl20;
enableSeparateDocOutput = false;
}