2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromBitbucket, ocaml, zlib, db, perl, camlp4 }:
|
2016-11-28 02:28:40 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "sks";
|
2016-11-28 02:28:40 +00:00
|
|
|
version = "1.1.6";
|
|
|
|
|
|
|
|
src = fetchFromBitbucket {
|
|
|
|
owner = "skskeyserver";
|
|
|
|
repo = "sks-keyserver";
|
2019-09-09 00:38:31 +01:00
|
|
|
rev = version;
|
2016-11-28 02:28:40 +00:00
|
|
|
sha256 = "00q5ma5rvl10rkc6cdw8d69bddgrmvy0ckqj3hbisy65l4idj2zm";
|
|
|
|
};
|
|
|
|
|
2018-09-08 15:08:37 +01:00
|
|
|
# pkgs.db provides db_stat, not db$major.$minor_stat
|
|
|
|
patches = [ ./adapt-to-nixos.patch ];
|
|
|
|
|
2018-09-08 13:14:01 +01:00
|
|
|
outputs = [ "out" "webSamples" ];
|
|
|
|
|
2017-10-24 12:10:42 +01:00
|
|
|
buildInputs = [ ocaml zlib db perl camlp4 ];
|
2016-11-28 02:28:40 +00:00
|
|
|
|
|
|
|
makeFlags = [ "PREFIX=$(out)" "MANDIR=$(out)/share/man" ];
|
|
|
|
preConfigure = ''
|
|
|
|
cp Makefile.local.unused Makefile.local
|
|
|
|
sed -i \
|
2017-10-24 12:10:42 +01:00
|
|
|
-e "s:^LIBDB=.*$:LIBDB=-ldb:g" \
|
2016-11-28 02:28:40 +00:00
|
|
|
Makefile.local
|
|
|
|
'';
|
|
|
|
|
|
|
|
preBuild = "make dep";
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
checkPhase = "./sks unit_test";
|
|
|
|
|
2018-09-08 13:14:01 +01:00
|
|
|
# Copy the web examples for the NixOS module
|
|
|
|
postInstall = "cp -R sampleWeb $webSamples";
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-10-24 12:10:42 +01:00
|
|
|
description = "An easily deployable & decentralized OpenPGP keyserver";
|
2016-11-28 02:28:40 +00:00
|
|
|
longDescription = ''
|
|
|
|
SKS is an OpenPGP keyserver whose goal is to provide easy to deploy,
|
|
|
|
decentralized, and highly reliable synchronization. That means that a key
|
|
|
|
submitted to one SKS server will quickly be distributed to all key
|
|
|
|
servers, and even wildly out-of-date servers, or servers that experience
|
|
|
|
spotty connectivity, can fully synchronize with rest of the system.
|
|
|
|
'';
|
|
|
|
inherit (src.meta) homepage;
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
2019-08-20 18:36:05 +01:00
|
|
|
maintainers = with maintainers; [ primeos fpletz globin ];
|
2016-11-28 02:28:40 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|