summaryrefslogtreecommitdiffstats
path: root/krebs/5pkgs/haskell/email-header.nix
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2018-10-06 23:48:20 +0200
committertv <tv@krebsco.de>2018-10-06 23:48:20 +0200
commitd7999df97cc7067b75e176ab274c560c950c0f35 (patch)
tree156d15ee5a3d48f46f206676d3b6fe88eba479f6 /krebs/5pkgs/haskell/email-header.nix
parent2fdb6069470d30ab708b1897fbda78b1b8ac7605 (diff)
tv: add 18.09 compatibility
Diffstat (limited to 'krebs/5pkgs/haskell/email-header.nix')
-rw-r--r--krebs/5pkgs/haskell/email-header.nix25
1 files changed, 20 insertions, 5 deletions
diff --git a/krebs/5pkgs/haskell/email-header.nix b/krebs/5pkgs/haskell/email-header.nix
index ba5a0e63e..4049168c1 100644
--- a/krebs/5pkgs/haskell/email-header.nix
+++ b/krebs/5pkgs/haskell/email-header.nix
@@ -1,14 +1,29 @@
+with import <stockholm/lib>;
{ mkDerivation, attoparsec, base, base64-bytestring, bytestring
, case-insensitive, containers, exceptions, fetchgit, QuickCheck
, stdenv, tasty, tasty-quickcheck, text, text-icu, time
-}:
-mkDerivation rec {
+}: let
+
+ cfg = {
+ "18.03" = {
+ version = "0.3.0";
+ rev = "7b179bd31192ead8afe7a0b6e34bcad4039deaa8";
+ sha256 = "12j2n3sbvzjnw99gga7kkdygm8n3qx2lh8q26ad6a53xm5whnz59";
+ };
+ "18.09" = {
+ version = "0.4.1-tv1";
+ rev = "refs/tags/v${cfg.version}";
+ sha256 = "11xjivpj495r2ss9aqljnpzzycb57cm4sr7yzmf939rzwsd3ib0x";
+ };
+ }.${versions.majorMinor nixpkgsVersion};
+
+in mkDerivation {
pname = "email-header";
- version = "0.4.1-tv1";
+ version = cfg.version;
src = fetchgit {
url = "https://github.com/4z3/email-header";
- rev = "refs/tags/v${version}";
- sha256 = "11xjivpj495r2ss9aqljnpzzycb57cm4sr7yzmf939rzwsd3ib0x";
+ rev = cfg.rev;
+ sha256 = cfg.sha256;
};
buildDepends = [
attoparsec base base64-bytestring bytestring case-insensitive