nixpkgs/pkgs/tools/security/opencryptoki/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

64 lines
1.2 KiB
Nix
Raw Normal View History

{ lib
, stdenv
, fetchFromGitHub
, autoreconfHook
, bison
, flex
, openldap
, openssl
, trousers
}:
stdenv.mkDerivation rec {
pname = "opencryptoki";
2023-03-02 03:13:57 +00:00
version = "3.20.0";
2017-11-12 21:39:37 +00:00
src = fetchFromGitHub {
owner = "opencryptoki";
repo = "opencryptoki";
rev = "v${version}";
2023-03-02 03:13:57 +00:00
hash = "sha256-Z11CDw9ykmJ7MI7I0H4Y/i+8/I+hRgC2frklYPP1di0=";
};
nativeBuildInputs = [
autoreconfHook
bison
flex
];
buildInputs = [
openldap
openssl
trousers
];
2017-11-12 21:39:37 +00:00
postPatch = ''
substituteInPlace configure.ac \
--replace "usermod" "true" \
--replace "groupadd" "true" \
--replace "chmod" "true" \
--replace "chgrp" "true"
'';
2017-11-12 21:39:37 +00:00
configureFlags = [
"--prefix="
2017-11-12 21:39:37 +00:00
"--disable-ccatok"
"--disable-icatok"
];
2017-11-12 21:39:37 +00:00
enableParallelBuilding = true;
installFlags = [
"DESTDIR=${placeholder "out"}"
];
meta = with lib; {
changelog = "https://github.com/opencryptoki/opencryptoki/blob/${src.rev}/ChangeLog";
description = "PKCS#11 implementation for Linux";
homepage = "https://github.com/opencryptoki/opencryptoki";
license = licenses.cpl10;
maintainers = [ ];
platforms = platforms.unix;
};
}