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
71 lines
1.4 KiB
Nix
71 lines
1.4 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
autoreconfHook,
|
|
bison,
|
|
flex,
|
|
openldap,
|
|
openssl,
|
|
trousers,
|
|
libcap,
|
|
getent,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "opencryptoki";
|
|
version = "3.25.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "opencryptoki";
|
|
repo = "opencryptoki";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-JIDy5LY2rJqMM1uWDWn6Q62kJ+7pYU4G7zptkbyvf9Q=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
autoreconfHook
|
|
bison
|
|
flex
|
|
getent
|
|
];
|
|
|
|
buildInputs = [
|
|
openldap
|
|
openssl
|
|
trousers
|
|
libcap
|
|
];
|
|
|
|
postPatch = ''
|
|
substituteInPlace configure.ac \
|
|
--replace-fail "/usr/sbin/" "" \
|
|
--replace-fail "/bin/" "" \
|
|
--replace-fail "usermod" "true" \
|
|
--replace-fail "useradd" "true" \
|
|
--replace-fail "groupadd" "true" \
|
|
--replace-fail "chmod" "true" \
|
|
--replace-fail "chown" "true" \
|
|
--replace-fail "chgrp" "true"
|
|
'';
|
|
|
|
configureFlags = [
|
|
"--prefix="
|
|
"--disable-ccatok"
|
|
"--disable-icatok"
|
|
];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
installFlags = [ "DESTDIR=${placeholder "out"}" ];
|
|
|
|
meta = {
|
|
changelog = "https://github.com/opencryptoki/opencryptoki/blob/v${finalAttrs.version}/ChangeLog";
|
|
description = "PKCS#11 implementation for Linux";
|
|
homepage = "https://github.com/opencryptoki/opencryptoki";
|
|
license = lib.licenses.cpl10;
|
|
maintainers = [ ];
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
})
|