stockholm/krebs/5pkgs/haskell/email-header.nix

47 lines
1.3 KiB
Nix
Raw Normal View History

2015-10-17 03:50:58 +00:00
{ mkDerivation, attoparsec, base, base64-bytestring, bytestring
, case-insensitive, containers, exceptions, fetchgit, QuickCheck
2021-10-19 20:51:26 +00:00
, lib, stockholm, tasty, tasty-quickcheck, text, text-icu, time
2021-10-12 17:36:09 +00:00
}:
with stockholm.lib;
let
2018-10-06 21:48:20 +00:00
cfg = {
"18.03" = {
version = "0.3.0";
rev = "7b179bd31192ead8afe7a0b6e34bcad4039deaa8";
sha256 = "12j2n3sbvzjnw99gga7kkdygm8n3qx2lh8q26ad6a53xm5whnz59";
};
2020-11-17 23:37:18 +00:00
"20.03" = {
version = "0.4.1-tv1";
rev = "refs/tags/v${cfg.version}";
sha256 = "11xjivpj495r2ss9aqljnpzzycb57cm4sr7yzmf939rzwsd3ib0x";
};
2019-10-09 21:27:33 +00:00
}.${versions.majorMinor version} or {
2020-11-17 22:50:26 +00:00
version = "0.4.1-tv2";
2019-10-09 21:27:33 +00:00
rev = "refs/tags/v${cfg.version}";
2020-11-17 22:50:26 +00:00
sha256 = "1yg4b5318lpviwgjs4kdcqg8cwfnxxfcdckcjq12r2nnj2k4ms2d";
2019-10-09 21:27:33 +00:00
};
2018-10-06 21:48:20 +00:00
in mkDerivation {
2015-10-17 03:50:58 +00:00
pname = "email-header";
2018-10-06 21:48:20 +00:00
version = cfg.version;
2015-10-17 03:50:58 +00:00
src = fetchgit {
url = "https://github.com/4z3/email-header";
2018-10-06 21:48:20 +00:00
rev = cfg.rev;
sha256 = cfg.sha256;
2015-10-17 03:50:58 +00:00
};
buildDepends = [
attoparsec base base64-bytestring bytestring case-insensitive
containers exceptions text text-icu time
];
testDepends = [
base bytestring case-insensitive containers QuickCheck tasty
tasty-quickcheck text time
];
jailbreak = true;
homepage = "http://github.com/knrafto/email-header";
description = "Parsing and rendering of email and MIME headers";
2021-10-19 20:51:26 +00:00
license = lib.licenses.bsd3;
2015-10-17 03:50:58 +00:00
}