2016-11-09 10:09:00 +00:00
|
|
|
{ stdenv, fetchFromGitHub, python2Packages, makeWrapper }:
|
2016-08-07 16:26:56 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "asn2quickder";
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
version = "0.7-RC1";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
sha256 = "0ynajhbml28m4ipbj5mscjcv6g1a7frvxfimxh813rhgl0w3sgq8";
|
|
|
|
rev = "version-${version}";
|
|
|
|
owner = "vanrein";
|
|
|
|
repo = "${pname}";
|
|
|
|
};
|
|
|
|
|
2016-11-09 10:09:00 +00:00
|
|
|
propagatedBuildInputs = with python2Packages; [ pyparsing makeWrapper ];
|
2016-08-07 16:26:56 +01:00
|
|
|
|
2016-11-09 10:09:00 +00:00
|
|
|
patchPhase = with python2Packages; ''
|
2016-08-07 16:26:56 +01:00
|
|
|
substituteInPlace Makefile \
|
2016-11-09 10:09:00 +00:00
|
|
|
--replace '..' '..:$(DESTDIR)/${python.sitePackages}:${python2Packages.pyparsing}/${python.sitePackages}' \
|
2016-08-07 16:26:56 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
2016-11-09 10:09:00 +00:00
|
|
|
mkdir -p $out/${python2Packages.python.sitePackages}/
|
2016-08-07 16:26:56 +01:00
|
|
|
mkdir -p $out/bin $out/lib $out/sbin $out/man
|
|
|
|
make DESTDIR=$out PREFIX=/ all
|
|
|
|
make DESTDIR=$out PREFIX=/ install
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "An ASN.1 compiler with a backend for Quick DER";
|
|
|
|
homepage = https://github.com/vanrein/asn2quickder;
|
|
|
|
license = licenses.bsd3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ leenaars ];
|
|
|
|
};
|
|
|
|
}
|