mirror of
https://github.com/coot/free-category.git
synced 2024-09-11 14:17:30 +03:00
33 lines
767 B
Nix
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;
|
|
}
|