1
1
mirror of https://github.com/coot/free-category.git synced 2024-11-23 09:55:43 +03:00
free-category/pkg.nix

34 lines
795 B
Nix
Raw Normal View History

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;
}