nixpkgs/pkgs/development/libraries/quickder/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

53 lines
1.2 KiB
Nix
Raw Normal View History

2022-01-12 03:29:58 +00:00
{ lib, stdenv, fetchFromGitHub, python3Packages, hexio
2019-12-20 15:11:05 +00:00
, cmake, bash, arpa2cm, git, asn2quickder }:
2016-08-10 20:43:13 +00:00
stdenv.mkDerivation rec {
pname = "quickder";
2020-01-17 10:12:57 +00:00
version = "1.3.0";
2016-08-10 20:43:13 +00:00
src = fetchFromGitHub {
2020-01-17 10:12:57 +00:00
sha256 = "15lxv8vcjnsjxg7ywcac5p6mj5vf5pxq1219yap653ci4f1liqfr";
2016-08-10 20:43:13 +00:00
rev = "version-${version}";
owner = "vanrein";
repo = "quick-der";
};
2019-12-20 15:11:05 +00:00
nativeBuildInputs = [ cmake ];
2022-01-12 03:29:58 +00:00
buildInputs = with python3Packages; [
2018-02-12 16:37:18 +00:00
arpa2cm
asn1ate
hexio
pyparsing
python
six
asn1ate
asn2quickder
];
2016-08-10 20:43:13 +00:00
2018-02-20 11:23:41 +00:00
postPatch = ''
2018-02-12 16:37:18 +00: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 11:23:41 +00:00
patchShebangs python/scripts/
'';
2016-08-10 20:43:13 +00:00
2018-02-20 11:23:41 +00:00
cmakeFlags = [
"-DNO_TESTING=ON"
"-DARPA2CM_TOOLCHAIN_DIR=$out/share/ARPA2CM/toolchain/"
];
2018-02-12 16:37:18 +00:00
preConfigure = ''
export PREFIX=$out
'';
2016-08-10 20:43:13 +00:00
meta = with lib; {
2016-08-10 20:43:13 +00:00
description = "Quick (and Easy) DER, a Library for parsing ASN.1";
homepage = "https://github.com/vanrein/quick-der";
2016-08-10 20:43:13 +00:00
license = licenses.bsd2;
platforms = platforms.linux;
maintainers = with maintainers; [ leenaars ];
};
}