summaryrefslogtreecommitdiffstats
path: root/krebs/5pkgs/haskell/blessings.nix
blob: ee673ddcc02070853cadf92ebaf7d8c5a03f323c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
with import <stockholm/lib>;
{ mkDerivation, base, fetchgit, stdenv }: let

  cfg = {
    "18.03" = {
      version = "1.1.0";
      sha256 = "1k908zap3694fcxdk4bb29s54b0lhdh557y10ybjskfwnym7szn1";
    };
    "18.09" = {
      version = "1.2.1";
      sha256 = "1bqf9agyw25wldii43h437q1csa8gc50rac4cihkih4n9xlqpfcm";
    };
  }.${versions.majorMinor nixpkgsVersion};

in mkDerivation {
  pname = "blessings";
  version = cfg.version;
  src = fetchgit {
    url = http://cgit.ni.krebsco.de/blessings;
    rev = "refs/tags/v${cfg.version}";
    sha256 = cfg.sha256;
  };
  libraryHaskellDepends = [ base ];
  doHaddock = false;
  # WTFPL is the true license, which is unknown to cabal.
  license = stdenv.lib.licenses.wtfpl;
}