mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 06:03:40 +00:00
60 lines
1.0 KiB
Nix
60 lines
1.0 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitLab
|
|
, python3
|
|
, cmake
|
|
, doxygen
|
|
, graphviz
|
|
, quickmem
|
|
, arpa2common
|
|
, arpa2cm
|
|
, ensureNewerSourcesForZipFilesHook
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "quickder";
|
|
version = "1.7.1";
|
|
|
|
src = fetchFromGitLab {
|
|
owner = "arpa2";
|
|
repo = "quick-der";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-f+ph5PL+uWRkswpOLDwZFWjh938wxoJ6xocJZ2WZLEk=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
doxygen
|
|
graphviz
|
|
ensureNewerSourcesForZipFilesHook
|
|
];
|
|
|
|
buildInputs = [
|
|
arpa2cm
|
|
arpa2common
|
|
(python3.withPackages (ps: with ps; [
|
|
asn1ate
|
|
colored
|
|
pyparsing
|
|
setuptools
|
|
six
|
|
]))
|
|
quickmem
|
|
];
|
|
|
|
|
|
postPatch = ''
|
|
substituteInPlace setup.py --replace 'pyparsing==' 'pyparsing>='
|
|
'';
|
|
|
|
doCheck = true;
|
|
|
|
meta = with lib; {
|
|
description = "Quick (and Easy) DER, a Library for parsing ASN.1";
|
|
homepage = "https://gitlab.com/arpa2/quick-der/";
|
|
license = licenses.bsd2;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ leenaars ];
|
|
};
|
|
}
|