2018-10-06 21:48:20 +00:00
|
|
|
with import <stockholm/lib>;
|
|
|
|
{ mkDerivation, base, fetchgit, stdenv }: let
|
|
|
|
|
|
|
|
cfg = {
|
|
|
|
"18.03" = {
|
|
|
|
version = "1.1.0";
|
|
|
|
sha256 = "1k908zap3694fcxdk4bb29s54b0lhdh557y10ybjskfwnym7szn1";
|
|
|
|
};
|
|
|
|
"18.09" = {
|
2019-01-25 13:26:50 +00:00
|
|
|
version = "2.1.0";
|
|
|
|
sha256 = "0wc8v48bb0bkvypc0j6imvnf8xc8572hykk9sgjhzf2w0ggqxv5d";
|
2018-10-06 21:48:20 +00:00
|
|
|
};
|
|
|
|
}.${versions.majorMinor nixpkgsVersion};
|
|
|
|
|
|
|
|
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
|
|
|
};
|
|
|
|
libraryHaskellDepends = [ base ];
|
|
|
|
doHaddock = false;
|
|
|
|
# WTFPL is the true license, which is unknown to cabal.
|
|
|
|
license = stdenv.lib.licenses.wtfpl;
|
|
|
|
}
|