blob: 69051714ab4cb113a0654769a19be9c9d0e03628 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
{ stdenv, fetchFromGitHub, pythonPackages, makeWrapper }:
stdenv.mkDerivation rec {
pname = "asn2quickder";
name = "${pname}-${version}";
version = "0.7-RC1";
src = fetchFromGitHub {
sha256 = "0ynajhbml28m4ipbj5mscjcv6g1a7frvxfimxh813rhgl0w3sgq8";
rev = "version-${version}";
owner = "vanrein";
repo = "${pname}";
};
propagatedBuildInputs = with pythonPackages; [ pyparsing makeWrapper ];
patchPhase = with pythonPackages; ''
substituteInPlace Makefile \
--replace '..' '..:$(DESTDIR)/${python.sitePackages}:${pythonPackages.pyparsing}/${python.sitePackages}' \
'';
installPhase = ''
mkdir -p $out/${pythonPackages.python.sitePackages}/
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 ];
};
}
|