blob: 6d4ca5a700874c6e512b799ad6d02d8ac0819390 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
{
lib,
stdenv,
fetchFromGitHub,
autoreconfHook,
bison,
flex,
openldap,
openssl,
trousers,
libcap,
getent,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "opencryptoki";
version = "3.26.0-unstable-2026-04-09";
src = fetchFromGitHub {
owner = "opencryptoki";
repo = "opencryptoki";
rev = "ed378f463ef73364c89feb0fc923f4dc867332a3";
hash = "sha256-1DxlsjPoK3kIQkfguhOlzP2d7dneYRz/Qwp4cH30AhU=";
};
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;
};
})
|