2016-08-10 21:43:13 +01:00
|
|
|
{ stdenv, fetchFromGitHub, fetchurl, hexio, python, which, asn2quickder, bash }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "quickder";
|
|
|
|
name = "${pname}-${version}";
|
2017-02-24 09:02:13 +00:00
|
|
|
version = "1.0-RC2";
|
2016-08-10 21:43:13 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2017-02-24 09:02:13 +00:00
|
|
|
sha256 = "1nzk8x6qzpvli8bf74dc2qya63nlppqjrnkaxvjxr2dbqb8qcrqd";
|
2016-08-10 21:43:13 +01:00
|
|
|
rev = "version-${version}";
|
|
|
|
owner = "vanrein";
|
|
|
|
repo = "quick-der";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ which asn2quickder bash ];
|
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
substituteInPlace Makefile \
|
|
|
|
--replace 'lib tool test rfc' 'lib test rfc'
|
|
|
|
substituteInPlace ./rfc/Makefile \
|
|
|
|
--replace 'ASN2QUICKDER_CMD = ' 'ASN2QUICKDER_CMD = ${asn2quickder}/bin/asn2quickder #'
|
|
|
|
'';
|
|
|
|
|
|
|
|
installFlags = "ASN2QUICKDER_DIR=${asn2quickder}/bin ASN2QUICKDER_CMD=${asn2quickder}/bin/asn2quickder";
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/lib $out/man
|
|
|
|
make DESTDIR=$out PREFIX=/ all
|
|
|
|
make DESTDIR=$out PREFIX=/ install
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Quick (and Easy) DER, a Library for parsing ASN.1";
|
|
|
|
homepage = https://github.com/vanrein/quick-der;
|
|
|
|
license = licenses.bsd2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ leenaars ];
|
|
|
|
};
|
|
|
|
}
|