1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-02 18:42:15 +00:00
nixpkgs/pkgs/development/libraries/quickder/default.nix

53 lines
1.2 KiB
Nix
Raw Normal View History

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