@@ -0,0 +1,38 @@
1+{ stdenv, fetchFromGitHub, fetchurl, hexio, python, which, asn2quickder, bash }:
3+stdenv.mkDerivation rec {
5+ name = "${pname}-${version}";
8+ src = fetchFromGitHub {
9+ sha256 = "05gw5dqkw3l8kwwm0044zpxhcp7sxicx9wxbfyr49c91403p870w";
10+ rev = "version-${version}";
15+ buildInputs = [ which asn2quickder bash ];
18+ substituteInPlace Makefile \
19+ --replace 'lib tool test rfc' 'lib test rfc'
20+ substituteInPlace ./rfc/Makefile \
21+ --replace 'ASN2QUICKDER_CMD = ' 'ASN2QUICKDER_CMD = ${asn2quickder}/bin/asn2quickder #'
24+ installFlags = "ASN2QUICKDER_DIR=${asn2quickder}/bin ASN2QUICKDER_CMD=${asn2quickder}/bin/asn2quickder";
26+ mkdir -p $out/lib $out/man
27+ make DESTDIR=$out PREFIX=/ all
28+ make DESTDIR=$out PREFIX=/ install
31+ meta = with stdenv.lib; {
32+ description = "Quick (and Easy) DER, a Library for parsing ASN.1";
33+ homepage = https://github.com/vanrein/quick-der;
34+ license = licenses.bsd2;
35+ platforms = platforms.linux;
36+ maintainers = with maintainers; [ leenaars ];