git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #17579 from leenaars/arpa2deps

quick-der library, asn2quickder + hexio tools

commite325f010f042c16e6c0b9739765f45f254987b03 authorJörg Thalheim <joerg@higgsboson.tk> dateMon 10 Oct 2016, 11:55 (10 years ago) parent6f389da08011fa
5 files changed+138
pkgs/development/libraries/quickder/default.nix+38 pkgs/development/tools/asn2quickder/default.nix+36 pkgs/development/tools/hexio/default.nix+36 pkgs/top-level/all-packages.nix+6 pkgs/top-level/python-packages.nix+22
pkgs/development/libraries/quickder/default.nixnew file+38
@@ -0,0 +1,38 @@
1+{ stdenv, fetchFromGitHub, fetchurl, hexio, python, which, asn2quickder, bash }:
2+
3+stdenv.mkDerivation rec {
4+ pname = "quickder";
5+ name = "${pname}-${version}";
6+ version = "1.0-RC1";
7+
8+ src = fetchFromGitHub {
9+ sha256 = "05gw5dqkw3l8kwwm0044zpxhcp7sxicx9wxbfyr49c91403p870w";
10+ rev = "version-${version}";
11+ owner = "vanrein";
12+ repo = "quick-der";
13+ };
14+
15+ buildInputs = [ which asn2quickder bash ];
16+
17+ patchPhase = ''
18+ substituteInPlace Makefile \
19+ --replace 'lib tool test rfc' 'lib test rfc'
20+ substituteInPlace ./rfc/Makefile \
21+ --replace 'ASN2QUICKDER_CMD = ' 'ASN2QUICKDER_CMD = ${asn2quickder}/bin/asn2quickder #'
22+ '';
23+
24+ installFlags = "ASN2QUICKDER_DIR=${asn2quickder}/bin ASN2QUICKDER_CMD=${asn2quickder}/bin/asn2quickder";
25+ installPhase = ''
26+ mkdir -p $out/lib $out/man
27+ make DESTDIR=$out PREFIX=/ all
28+ make DESTDIR=$out PREFIX=/ install
29+ '';
30+
31+ meta = with stdenv.lib; {
32+ description = "Quick (and Easy) DER, a Library for parsing ASN.1";
33+ homepage = https://github.com/vanrein/quick-der;
34+ license = licenses.bsd2;
35+ platforms = platforms.linux;
36+ maintainers = with maintainers; [ leenaars ];
37+ };
38+}
pkgs/development/tools/asn2quickder/default.nixnew file+36
@@ -0,0 +1,36 @@
1+{ stdenv, fetchFromGitHub, pythonPackages, makeWrapper }:
2+
3+stdenv.mkDerivation rec {
4+ pname = "asn2quickder";
5+ name = "${pname}-${version}";
6+ version = "0.7-RC1";
7+
8+ src = fetchFromGitHub {
9+ sha256 = "0ynajhbml28m4ipbj5mscjcv6g1a7frvxfimxh813rhgl0w3sgq8";
10+ rev = "version-${version}";
11+ owner = "vanrein";
12+ repo = "${pname}";
13+ };
14+
15+ propagatedBuildInputs = with pythonPackages; [ pyparsing makeWrapper ];
16+
17+ patchPhase = with pythonPackages; ''
18+ substituteInPlace Makefile \
19+ --replace '..' '..:$(DESTDIR)/${python.sitePackages}:${pythonPackages.pyparsing}/${python.sitePackages}' \
20+ '';
21+
22+ installPhase = ''
23+ mkdir -p $out/${pythonPackages.python.sitePackages}/
24+ mkdir -p $out/bin $out/lib $out/sbin $out/man
25+ make DESTDIR=$out PREFIX=/ all
26+ make DESTDIR=$out PREFIX=/ install
27+ '';
28+
29+ meta = with stdenv.lib; {
30+ description = "An ASN.1 compiler with a backend for Quick DER";
31+ homepage = https://github.com/vanrein/asn2quickder;
32+ license = licenses.bsd3;
33+ platforms = platforms.linux;
34+ maintainers = with maintainers; [ leenaars ];
35+ };
36+}
pkgs/development/tools/hexio/default.nixnew file+36
@@ -0,0 +1,36 @@
1+{ stdenv, fetchFromGitHub, fetchurl, python, pcsclite, pth, glibc }:
2+
3+stdenv.mkDerivation rec {
4+ pname = "hexio";
5+ name = "${pname}-${version}";
6+ version = "201605";
7+
8+ src = fetchFromGitHub {
9+ sha256 = "08jxkdi0gjsi8s793f9kdlad0a58a0xpsaayrsnpn9bpmm5cgihq";
10+ rev = "f6f963bd0fcd2808977e0ad82dcb3100691cdd7c";
11+ owner = "vanrein";
12+ repo = "hexio";
13+ };
14+
15+ buildInputs = [ python pcsclite pth glibc ];
16+
17+ patchPhase = ''
18+ substituteInPlace Makefile \
19+ --replace '-I/usr/local/include/PCSC/' '-I${pcsclite}/include/PCSC/' \
20+ --replace '-L/usr/local/lib/pth' '-I${pth}/lib/'
21+ '';
22+
23+ installPhase = ''
24+ mkdir -p $out/bin $out/lib $out/sbin $out/man
25+ make DESTDIR=$out PREFIX=/ all
26+ make DESTDIR=$out PREFIX=/ install
27+ '';
28+
29+ meta = with stdenv.lib; {
30+ description = "Low-level I/O helpers for hexadecimal, tty/serial devices and so on";
31+ homepage = https://github.com/vanrein/hexio;
32+ license = licenses.bsd2;
33+ platforms = platforms.linux;
34+ maintainers = with maintainers; [ leenaars ];
35+ };
36+}
pkgs/top-level/all-packages.nix+6
@@ -871,6 +871,8 @@ in
871871
872872 heatseeker = callPackage ../tools/misc/heatseeker { };
873873
874+ hexio = callPackage ../development/tools/hexio { };
875+
874876 interlock = callPackage ../servers/interlock {};
875877
876878 kapacitor = callPackage ../servers/monitoring/kapacitor { };
@@ -5720,6 +5722,8 @@ in
57205722 apacheKafka_0_9 = callPackage ../servers/apache-kafka { majorVersion = "0.9"; };
57215723 apacheKafka_0_10 = callPackage ../servers/apache-kafka { majorVersion = "0.10"; };
57225724
5725+ asn2quickder = callPackage ../development/tools/asn2quickder {};
5726+
57235727 astyle = callPackage ../development/tools/misc/astyle { };
57245728
57255729 electron = callPackage ../development/tools/electron { };
@@ -8886,6 +8890,8 @@ in
88868890
88878891 quesoglc = callPackage ../development/libraries/quesoglc { };
88888892
8893+ quickder = callPackage ../development/libraries/quickder {};
8894+
88898895 quicksynergy = callPackage ../applications/misc/quicksynergy { };
88908896
88918897 qwt = callPackage ../development/libraries/qwt {};
pkgs/top-level/python-packages.nix+22
@@ -1160,6 +1160,28 @@ in modules // {
11601160 };
11611161 };
11621162
1163+ asn1ate = buildPythonPackage rec {
1164+ pname = "asn1ate";
1165+ date = "20160810";
1166+ name = "${pname}-unstable-${date}";
1167+
1168+ src = pkgs.fetchFromGitHub {
1169+ sha256 = "04pddr1mh2v9qq8fg60czwvjny5qwh4nyxszr3qc4bipiiv2xk9w";
1170+ rev = "c56104e8912400135509b584d84423ee05a5af6b";
1171+ owner = "kimgr";
1172+ repo = pname;
1173+ };
1174+
1175+ propagatedBuildInputs = with self; [ pyparsing ];
1176+
1177+ meta = with stdenv.lib; {
1178+ description = "Python library for translating ASN.1 into other forms";
1179+ license = licenses.bsd3;
1180+ platforms = platforms.linux;
1181+ maintainers = with maintainers; [ leenaars ];
1182+ };
1183+};
1184+
11631185 atomiclong = buildPythonPackage rec {
11641186 version = "0.1.1";
11651187 name = "atomiclong-${version}";