stockholm/krebs/5pkgs/haskell/blessings.nix

29 lines
772 B
Nix
Raw Permalink Normal View History

2021-10-19 20:51:26 +00:00
{ mkDerivation, base, fetchgit, hspec, QuickCheck, lib, stockholm, text }:
2021-10-12 17:36:09 +00:00
with stockholm.lib;
2018-10-06 21:48:20 +00:00
2021-10-12 17:36:09 +00:00
let
2018-10-06 21:48:20 +00:00
cfg = {
"18.03" = {
version = "1.1.0";
sha256 = "1k908zap3694fcxdk4bb29s54b0lhdh557y10ybjskfwnym7szn1";
};
}.${versions.majorMinor version} or {
version = "2.2.0";
sha256 = "1pb56dgf3jj2kq3cbbppwzyg3ccgqy9xara62hkjwyxzdx20clk1";
};
2018-10-06 21:48:20 +00:00
in mkDerivation {
2015-10-17 03:50:58 +00:00
pname = "blessings";
2018-10-06 21:48:20 +00:00
version = cfg.version;
2015-10-17 03:50:58 +00:00
src = fetchgit {
2016-11-10 22:15:33 +00:00
url = http://cgit.ni.krebsco.de/blessings;
2018-10-06 21:48:20 +00:00
rev = "refs/tags/v${cfg.version}";
sha256 = cfg.sha256;
2015-10-17 03:50:58 +00:00
};
2019-02-05 20:11:09 +00:00
libraryHaskellDepends = [ base text ];
testHaskellDepends = [ base hspec QuickCheck ];
2015-10-17 03:50:58 +00:00
doHaddock = false;
# WTFPL is the true license, which is unknown to cabal.
2021-10-19 20:51:26 +00:00
license = lib.licenses.wtfpl;
2015-10-17 03:50:58 +00:00
}