mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-01 01:51:24 +00:00
8e7a7e9539
Semi-automatic update. These checks were performed: - built on NixOS - found 3.8.2 with grep in /nix/store/4b45r8vab7cxg4b5swyi7x7nvi6cpgci-opencryptoki-3.8.2 - found 3.8.2 in filename of file in /nix/store/4b45r8vab7cxg4b5swyi7x7nvi6cpgci-opencryptoki-3.8.2 cc "@tstrobel"
42 lines
1.1 KiB
Nix
42 lines
1.1 KiB
Nix
{ stdenv, fetchFromGitHub, openssl, trousers, autoreconfHook, libtool, bison, flex }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "opencryptoki-${version}";
|
|
version = "3.8.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "opencryptoki";
|
|
repo = "opencryptoki";
|
|
rev = "v${version}";
|
|
sha256 = "1rf7cmibmx636vzv7p54g212478a8wim2lfjf2861hfd0m96nv4l";
|
|
};
|
|
|
|
nativeBuildInputs = [ autoreconfHook libtool bison flex ];
|
|
buildInputs = [ openssl trousers ];
|
|
|
|
postPatch = ''
|
|
substituteInPlace configure.ac \
|
|
--replace "usermod" "true" \
|
|
--replace "groupadd" "true" \
|
|
--replace "chmod" "true" \
|
|
--replace "chgrp" "true"
|
|
substituteInPlace usr/lib/Makefile.am --replace "DESTDIR" "out"
|
|
'';
|
|
|
|
configureFlags = [
|
|
"--prefix=$(out)"
|
|
"--disable-ccatok"
|
|
"--disable-icatok"
|
|
];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "PKCS#11 implementation for Linux";
|
|
homepage = https://github.com/opencryptoki/opencryptoki;
|
|
license = licenses.cpl10;
|
|
maintainers = [ maintainers.tstrobel ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|