uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
41
pkgs/tools/security/opencryptoki/default.nix
Normal file
41
pkgs/tools/security/opencryptoki/default.nix
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
{ lib, stdenv, fetchFromGitHub, openssl, trousers, autoreconfHook, libtool, bison, flex }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "opencryptoki";
|
||||
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 lib; {
|
||||
description = "PKCS#11 implementation for Linux";
|
||||
homepage = "https://github.com/opencryptoki/opencryptoki";
|
||||
license = licenses.cpl10;
|
||||
maintainers = [ maintainers.tstrobel ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue