summaryrefslogtreecommitdiffstats
path: root/pkgs/development/tools/asn2quickder
diff options
context:
space:
mode:
authorMichiel Leenaars <ml.software@leenaa.rs>2018-02-12 17:30:17 +0100
committerMichiel Leenaars <ml.software@leenaa.rs>2018-02-18 22:01:52 +0100
commit4f53b7788979219bf66b11d7936b0821d64db2a6 (patch)
tree8b89a55d116e4f7180edc5e63e24478e1846e334 /pkgs/development/tools/asn2quickder
parent32efe661825a49c62015280ea9e4a46477230219 (diff)
asn2quickder: 0.7RC1 -> 1.2-6
Diffstat (limited to 'pkgs/development/tools/asn2quickder')
-rw-r--r--pkgs/development/tools/asn2quickder/default.nix29
1 files changed, 12 insertions, 17 deletions
diff --git a/pkgs/development/tools/asn2quickder/default.nix b/pkgs/development/tools/asn2quickder/default.nix
index 812053902a57..e0b9aec9ee15 100644
--- a/pkgs/development/tools/asn2quickder/default.nix
+++ b/pkgs/development/tools/asn2quickder/default.nix
@@ -1,30 +1,25 @@
-{ stdenv, fetchFromGitHub, python2Packages, makeWrapper }:
+{ stdenv, buildPythonApplication, fetchFromGitHub, makeWrapper, cmake
+, pytestrunner, pytest, six, pyparsing, asn1ate }:
-stdenv.mkDerivation rec {
+buildPythonApplication rec {
pname = "asn2quickder";
- name = "${pname}-${version}";
- version = "0.7-RC1";
+ version = "1.2-6";
src = fetchFromGitHub {
- sha256 = "0ynajhbml28m4ipbj5mscjcv6g1a7frvxfimxh813rhgl0w3sgq8";
+ sha256 = "00wifjydgmqw2i5vmr049visc3shjqccgzqynkmmhkjhs86ghzr6";
rev = "version-${version}";
owner = "vanrein";
- repo = "${pname}";
+ repo = "quick-der";
};
- propagatedBuildInputs = with python2Packages; [ pyparsing makeWrapper ];
+ patchPhase = ''
+ patchShebangs ./python/scripts/*
+ '';
- patchPhase = with python2Packages; ''
- substituteInPlace Makefile \
- --replace '..' '..:$(DESTDIR)/${python.sitePackages}:${python2Packages.pyparsing}/${python.sitePackages}' \
- '';
+ buildInputs = [ makeWrapper cmake ];
+ checkInputs = [ pytestrunner pytest ];
- installPhase = ''
- mkdir -p $out/${python2Packages.python.sitePackages}/
- mkdir -p $out/bin $out/lib $out/sbin $out/man
- make DESTDIR=$out PREFIX=/ all
- make DESTDIR=$out PREFIX=/ install
- '';
+ propagatedBuildInputs = [ pyparsing asn1ate six ];
meta = with stdenv.lib; {
description = "An ASN.1 compiler with a backend for Quick DER";