summaryrefslogtreecommitdiffstats
path: root/pkgs/development/tools/asn2quickder
diff options
context:
space:
mode:
authorMichiel Leenaars <ml.software@leenaa.rs>2016-08-07 17:26:56 +0200
committerMichiel Leenaars <ml.software@leenaa.rs>2016-10-09 22:45:51 +0200
commit651beb0592578156fb668c8f0eee074febb1afff (patch)
tree30ac9a9b9ff20af9701878abfee0105dcd9c47fd /pkgs/development/tools/asn2quickder
parent19f2556773afb86dc5c213b678cd22ffa37f3721 (diff)
asn2quickder: init at 0.7RC1
Diffstat (limited to 'pkgs/development/tools/asn2quickder')
-rw-r--r--pkgs/development/tools/asn2quickder/default.nix36
1 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/development/tools/asn2quickder/default.nix b/pkgs/development/tools/asn2quickder/default.nix
new file mode 100644
index 000000000000..69051714ab4c
--- /dev/null
+++ b/pkgs/development/tools/asn2quickder/default.nix
@@ -0,0 +1,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 ];
+ };
+}