mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 23:54:01 +00:00
4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
53 lines
1.5 KiB
Nix
53 lines
1.5 KiB
Nix
{ lib, stdenv, fetchFromBitbucket, ocaml, zlib, db, perl, camlp4 }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "sks";
|
|
version = "1.1.6";
|
|
|
|
src = fetchFromBitbucket {
|
|
owner = "skskeyserver";
|
|
repo = "sks-keyserver";
|
|
rev = version;
|
|
sha256 = "00q5ma5rvl10rkc6cdw8d69bddgrmvy0ckqj3hbisy65l4idj2zm";
|
|
};
|
|
|
|
# pkgs.db provides db_stat, not db$major.$minor_stat
|
|
patches = [ ./adapt-to-nixos.patch ];
|
|
|
|
outputs = [ "out" "webSamples" ];
|
|
|
|
buildInputs = [ ocaml zlib db perl camlp4 ];
|
|
|
|
makeFlags = [ "PREFIX=$(out)" "MANDIR=$(out)/share/man" ];
|
|
preConfigure = ''
|
|
cp Makefile.local.unused Makefile.local
|
|
sed -i \
|
|
-e "s:^LIBDB=.*$:LIBDB=-ldb:g" \
|
|
Makefile.local
|
|
'';
|
|
|
|
preBuild = "make dep";
|
|
|
|
doCheck = true;
|
|
checkPhase = "./sks unit_test";
|
|
|
|
# Copy the web examples for the NixOS module
|
|
postInstall = "cp -R sampleWeb $webSamples";
|
|
|
|
meta = with lib; {
|
|
description = "An easily deployable & decentralized OpenPGP keyserver";
|
|
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;
|
|
maintainers = with maintainers; [ primeos fpletz globin ];
|
|
};
|
|
}
|
|
|