Files
Dark Steveneq 646b892680
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
push sheeet
2025-10-09 14:15:47 +02:00

58 lines
1.2 KiB
Nix

{
lib,
stdenv,
fetchurl,
fetchpatch,
pkg-config,
json_c,
openssl,
check,
file,
help2man,
which,
gengetopt,
}:
stdenv.mkDerivation rec {
pname = "libu2f-server";
version = "1.1.0";
src = fetchurl {
url = "https://developers.yubico.com/libu2f-server/Releases/${pname}-${version}.tar.xz";
sha256 = "0xx296nmmqa57w0v5p2kasl5zr1ms2gh6qi4lhv6xvzbmjp3rkcd";
};
patches = [
# remove after updating to next release
(fetchpatch {
name = "json-c-0.14-support.patch";
url = "https://github.com/Yubico/libu2f-server/commit/f7c4983b31909299c47bf9b2627c84b6bfe225de.patch";
sha256 = "10q66w3paii1yhfdmjskpip078fk9p3sjllbqx1yx71qbjki55b0";
})
];
strictDeps = true;
nativeBuildInputs = [
gengetopt
help2man
pkg-config
which
];
buildInputs = [
json_c
openssl
check
file
];
meta = with lib; {
homepage = "https://developers.yubico.com/libu2f-server/";
description = "C library that implements the server-side of the U2F protocol";
mainProgram = "u2f-server";
license = licenses.bsd2;
platforms = platforms.linux;
maintainers = with maintainers; [ philandstuff ];
};
}