push sheeet
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s

This commit is contained in:
Dark Steveneq
2025-10-09 14:15:47 +02:00
commit 646b892680
49168 changed files with 5897842 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
--- a/version.ml 2018-09-08 15:56:18.919154257 +0200
+++ b/version.ml 2018-09-08 15:56:07.544028575 +0200
@@ -24,16 +24,6 @@
let run () =
let bdb_version = Bdb.version () in
- let dbstats_dir =
- let split = Str.regexp_string "." in
- let major_minor_string major minor =
- sprintf "Further details about the BDB environment can be seen by \
- executing\ndb%s.%s_stat -x in the KDB and Ptree directories\n" major minor
- in
- match Str.split split bdb_version with
- | major :: minor :: _ -> major_minor_string major minor
- | [] | _ :: [] -> major_minor_string "X" "Y"
- in
printf "SKS version %s%s\n"
Common.version Common.version_suffix;
@@ -44,5 +34,6 @@
requirement for recon of SKS %s\n"
Common.compatible_version_string;
- printf "%s" dbstats_dir
+ printf "Further details about the BDB environment can be seen by executing\n\
+ db_stat -x in the KDB and PTree directories\n"

View File

@@ -0,0 +1,86 @@
{
lib,
stdenv,
fetchFromGitHub,
ocamlPackages,
perl,
zlib,
db,
}:
let
inherit (ocamlPackages)
ocaml
findlib
cryptokit
num
;
in
stdenv.mkDerivation rec {
pname = "sks";
version = "unstable-2021-02-04";
src = fetchFromGitHub {
owner = "SKS-Keyserver";
repo = "sks-keyserver";
rev = "c3ba6d5abb525dcb84745245631c410c11c07ec1";
sha256 = "0fql07sc69hv6jy7x5svb19977cdsz0p1j8wv53k045a6v7rw1jw";
};
# pkgs.db provides db_stat, not db$major.$minor_stat
patches = [
./adapt-to-nixos.patch
];
outputs = [
"out"
"webSamples"
];
nativeBuildInputs = [
ocaml
findlib
perl
];
buildInputs = [
zlib
db
cryptokit
num
];
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 = "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.gpl2Plus;
platforms = platforms.linux;
maintainers = [ ];
};
}