2022-08-12 12:06:08 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitLab
|
|
|
|
, python3
|
|
|
|
, cmake
|
|
|
|
, doxygen
|
|
|
|
, graphviz
|
|
|
|
, quickmem
|
|
|
|
, arpa2common
|
|
|
|
, arpa2cm
|
|
|
|
, ensureNewerSourcesForZipFilesHook
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "quickder";
|
2022-08-12 12:06:08 +00:00
|
|
|
version = "1.7.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "arpa2";
|
2020-04-24 23:36:52 +00:00
|
|
|
repo = "quick-der";
|
2022-08-12 12:06:08 +00:00
|
|
|
rev = "v${version}";
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-f+ph5PL+uWRkswpOLDwZFWjh938wxoJ6xocJZ2WZLEk=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
doxygen
|
|
|
|
graphviz
|
|
|
|
ensureNewerSourcesForZipFilesHook
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
buildInputs = [
|
2020-04-24 23:36:52 +00:00
|
|
|
arpa2cm
|
2022-08-12 12:06:08 +00:00
|
|
|
arpa2common
|
|
|
|
(python3.withPackages (ps: with ps; [
|
|
|
|
asn1ate
|
|
|
|
colored
|
|
|
|
pyparsing
|
|
|
|
setuptools
|
|
|
|
six
|
|
|
|
]))
|
|
|
|
quickmem
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
postPatch = ''
|
2022-08-12 12:06:08 +00:00
|
|
|
substituteInPlace setup.py --replace 'pyparsing==' 'pyparsing>='
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
doCheck = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Quick (and Easy) DER, a Library for parsing ASN.1";
|
2022-08-12 12:06:08 +00:00
|
|
|
homepage = "https://gitlab.com/arpa2/quick-der/";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.bsd2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ leenaars ];
|
|
|
|
};
|
|
|
|
}
|