From 9ae5cd22a6e5472de65e48682eb51fc4c9f1457e Mon Sep 17 00:00:00 2001
From: lassulus <lassulus@lassul.us>
Date: Wed, 9 Oct 2019 23:27:33 +0200
Subject: [PATCH] email-header: make future compatible

---
 krebs/5pkgs/haskell/email-header.nix | 21 +++++----------------
 1 file changed, 5 insertions(+), 16 deletions(-)

diff --git a/krebs/5pkgs/haskell/email-header.nix b/krebs/5pkgs/haskell/email-header.nix
index 8b7165860..572a8029c 100644
--- a/krebs/5pkgs/haskell/email-header.nix
+++ b/krebs/5pkgs/haskell/email-header.nix
@@ -10,22 +10,11 @@ with import <stockholm/lib>;
       rev = "7b179bd31192ead8afe7a0b6e34bcad4039deaa8";
       sha256 = "12j2n3sbvzjnw99gga7kkdygm8n3qx2lh8q26ad6a53xm5whnz59";
     };
-    "18.09" = {
-      version = "0.4.1-tv1";
-      rev = "refs/tags/v${cfg.version}";
-      sha256 = "11xjivpj495r2ss9aqljnpzzycb57cm4sr7yzmf939rzwsd3ib0x";
-    };
-    "19.03" = {
-      version = "0.4.1-tv1";
-      rev = "refs/tags/v${cfg.version}";
-      sha256 = "11xjivpj495r2ss9aqljnpzzycb57cm4sr7yzmf939rzwsd3ib0x";
-    };
-    "19.09" = {
-      version = "0.4.1-tv1";
-      rev = "refs/tags/v${cfg.version}";
-      sha256 = "11xjivpj495r2ss9aqljnpzzycb57cm4sr7yzmf939rzwsd3ib0x";
-    };
-  }.${versions.majorMinor version};
+  }.${versions.majorMinor version} or {
+    version = "0.4.1-tv1";
+    rev = "refs/tags/v${cfg.version}";
+    sha256 = "11xjivpj495r2ss9aqljnpzzycb57cm4sr7yzmf939rzwsd3ib0x";
+  };
 
 in mkDerivation {
   pname = "email-header";