2018-07-20 17:44:44 -07:00
|
|
|
{ stdenv, fetchFromGitHub, python2Packages, hexio
|
2019-12-20 07:11:05 -08:00
|
|
|
, cmake, bash, arpa2cm, git, asn2quickder }:
|
2016-08-10 13:43:13 -07:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "quickder";
|
2020-01-17 02:12:57 -08:00
|
|
|
version = "1.3.0";
|
2016-08-10 13:43:13 -07:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2020-01-17 02:12:57 -08:00
|
|
|
sha256 = "15lxv8vcjnsjxg7ywcac5p6mj5vf5pxq1219yap653ci4f1liqfr";
|
2016-08-10 13:43:13 -07:00
|
|
|
rev = "version-${version}";
|
|
|
|
owner = "vanrein";
|
|
|
|
repo = "quick-der";
|
|
|
|
};
|
|
|
|
|
2019-12-20 07:11:05 -08:00
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
2018-02-12 08:37:18 -08:00
|
|
|
buildInputs = with python2Packages; [
|
|
|
|
arpa2cm
|
|
|
|
asn1ate
|
|
|
|
hexio
|
|
|
|
pyparsing
|
|
|
|
python
|
|
|
|
six
|
|
|
|
asn1ate
|
|
|
|
asn2quickder
|
|
|
|
];
|
2016-08-10 13:43:13 -07:00
|
|
|
|
2018-02-20 03:23:41 -08:00
|
|
|
postPatch = ''
|
2018-02-12 08:37:18 -08:00
|
|
|
substituteInPlace ./CMakeLists.txt \
|
|
|
|
--replace "get_version_from_git" "set (Quick-DER_VERSION 1.2) #"
|
|
|
|
substituteInPlace ./CMakeLists.txt \
|
|
|
|
--replace \$\{ARPA2CM_TOOLCHAIN_DIR} "$out/share/ARPA2CM/toolchain/"
|
2018-02-20 03:23:41 -08:00
|
|
|
patchShebangs python/scripts/
|
|
|
|
'';
|
2016-08-10 13:43:13 -07:00
|
|
|
|
2018-02-20 03:23:41 -08:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DNO_TESTING=ON"
|
|
|
|
"-DARPA2CM_TOOLCHAIN_DIR=$out/share/ARPA2CM/toolchain/"
|
|
|
|
];
|
2018-02-12 08:37:18 -08:00
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
export PREFIX=$out
|
|
|
|
'';
|
2016-08-10 13:43:13 -07:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Quick (and Easy) DER, a Library for parsing ASN.1";
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://github.com/vanrein/quick-der";
|
2016-08-10 13:43:13 -07:00
|
|
|
license = licenses.bsd2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ leenaars ];
|
|
|
|
};
|
|
|
|
}
|