1{ lib
2, stdenv
3, fetchFromGitLab
4, python3
5, cmake
6, doxygen
7, graphviz
8, quickmem
9, arpa2common
10, arpa2cm
11, ensureNewerSourcesForZipFilesHook
12}:
13
14stdenv.mkDerivation rec {
15 pname = "quickder";
16 version = "1.7.1";
17
18 src = fetchFromGitLab {
19 owner = "arpa2";
20 repo = "quick-der";
21 rev = "v${version}";
22 sha256 = "sha256-f+ph5PL+uWRkswpOLDwZFWjh938wxoJ6xocJZ2WZLEk=";
23 };
24
25 nativeBuildInputs = [
26 cmake
27 doxygen
28 graphviz
29 ensureNewerSourcesForZipFilesHook
30 ];
31
32 buildInputs = [
33 arpa2cm
34 arpa2common
35 (python3.withPackages (ps: with ps; [
36 asn1ate
37 colored
38 pyparsing
39 setuptools
40 six
41 ]))
42 quickmem
43 ];
44
45
46 postPatch = ''
47 substituteInPlace setup.py --replace 'pyparsing==' 'pyparsing>='
48 '';
49
50 doCheck = true;
51
52 meta = with lib; {
53 description = "Quick (and Easy) DER, a Library for parsing ASN.1";
54 homepage = "https://gitlab.com/arpa2/quick-der/";
55 license = licenses.bsd2;
56 platforms = platforms.linux;
57 maintainers = with maintainers; [ leenaars ];
58 };
59}