sks: 1.1.6 -> unstable-2021-02-04

The 1.1.6 release is from 2016 and only supports old OCaml version.
Updating to current master allows us to use nixpkgs' default ocaml
version.

It also no longer vendors in an old version of cryptokit.
This commit is contained in:
sternenseemann 2021-03-20 15:26:41 +01:00
parent 6f4c2affc5
commit a1d9d4ea21
2 changed files with 24 additions and 10 deletions

View file

@ -1,22 +1,36 @@
{ lib, stdenv, fetchFromBitbucket, ocaml, zlib, db, perl, camlp4 }:
{ lib, stdenv, fetchFromGitHub, ocamlPackages, perl
, zlib, db
}:
let
inherit (ocamlPackages)
ocaml
findlib
cryptokit
num
;
in
stdenv.mkDerivation rec {
pname = "sks";
version = "1.1.6";
version = "unstable-2021-02-04";
src = fetchFromBitbucket {
owner = "skskeyserver";
src = fetchFromGitHub {
owner = "SKS-Keyserver";
repo = "sks-keyserver";
rev = version;
sha256 = "00q5ma5rvl10rkc6cdw8d69bddgrmvy0ckqj3hbisy65l4idj2zm";
rev = "c3ba6d5abb525dcb84745245631c410c11c07ec1";
sha256 = "0fql07sc69hv6jy7x5svb19977cdsz0p1j8wv53k045a6v7rw1jw";
};
# pkgs.db provides db_stat, not db$major.$minor_stat
patches = [ ./adapt-to-nixos.patch ];
patches = [
./adapt-to-nixos.patch
];
outputs = [ "out" "webSamples" ];
buildInputs = [ ocaml zlib db perl camlp4 ];
nativeBuildInputs = [ ocaml findlib perl ];
buildInputs = [ zlib db cryptokit num ];
makeFlags = [ "PREFIX=$(out)" "MANDIR=$(out)/share/man" ];
preConfigure = ''
@ -44,7 +58,7 @@ stdenv.mkDerivation rec {
spotty connectivity, can fully synchronize with rest of the system.
'';
inherit (src.meta) homepage;
license = licenses.gpl2;
license = licenses.gpl2Plus;
platforms = platforms.linux;
maintainers = with maintainers; [ primeos fpletz globin ];
};

View file

@ -8087,7 +8087,7 @@ in
skippy-xd = callPackage ../tools/X11/skippy-xd {};
sks = callPackage ../servers/sks { inherit (ocaml-ng.ocamlPackages_4_02) ocaml camlp4; };
sks = callPackage ../servers/sks { };
skydns = callPackage ../servers/skydns { };