at 23.05-pre 41 lines 1.1 kB view raw
1{ lib, stdenv, fetchFromGitHub, openssl, trousers, autoreconfHook, libtool, bison, flex }: 2 3stdenv.mkDerivation rec { 4 pname = "opencryptoki"; 5 version = "3.8.2"; 6 7 src = fetchFromGitHub { 8 owner = "opencryptoki"; 9 repo = "opencryptoki"; 10 rev = "v${version}"; 11 sha256 = "1rf7cmibmx636vzv7p54g212478a8wim2lfjf2861hfd0m96nv4l"; 12 }; 13 14 nativeBuildInputs = [ autoreconfHook libtool bison flex ]; 15 buildInputs = [ openssl trousers ]; 16 17 postPatch = '' 18 substituteInPlace configure.ac \ 19 --replace "usermod" "true" \ 20 --replace "groupadd" "true" \ 21 --replace "chmod" "true" \ 22 --replace "chgrp" "true" 23 substituteInPlace usr/lib/Makefile.am --replace "DESTDIR" "out" 24 ''; 25 26 configureFlags = [ 27 "--prefix=$(out)" 28 "--disable-ccatok" 29 "--disable-icatok" 30 ]; 31 32 enableParallelBuilding = true; 33 34 meta = with lib; { 35 description = "PKCS#11 implementation for Linux"; 36 homepage = "https://github.com/opencryptoki/opencryptoki"; 37 license = licenses.cpl10; 38 maintainers = [ ]; 39 platforms = platforms.unix; 40 }; 41}