diff options
author | Michiel Leenaars <ml.software@leenaa.rs> | 2016-08-10 22:43:13 +0200 |
---|---|---|
committer | Michiel Leenaars <ml.software@leenaa.rs> | 2016-10-09 22:45:51 +0200 |
commit | 08011fa2af20b3993cf868c791de3b1dae46f733 (patch) | |
tree | a25dd39321516a64b797dc9eb4b4e31e47cb8216 /pkgs/development/libraries/quickder | |
parent | 651beb0592578156fb668c8f0eee074febb1afff (diff) |
quickder: init at 1.0-RC1
Diffstat (limited to 'pkgs/development/libraries/quickder')
-rw-r--r-- | pkgs/development/libraries/quickder/default.nix | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/pkgs/development/libraries/quickder/default.nix b/pkgs/development/libraries/quickder/default.nix new file mode 100644 index 0000000000000..2ee3a61aacfc3 --- /dev/null +++ b/pkgs/development/libraries/quickder/default.nix @@ -0,0 +1,38 @@ +{ stdenv, fetchFromGitHub, fetchurl, hexio, python, which, asn2quickder, bash }: + +stdenv.mkDerivation rec { + pname = "quickder"; + name = "${pname}-${version}"; + version = "1.0-RC1"; + + src = fetchFromGitHub { + sha256 = "05gw5dqkw3l8kwwm0044zpxhcp7sxicx9wxbfyr49c91403p870w"; + rev = "version-${version}"; + owner = "vanrein"; + repo = "quick-der"; + }; + + buildInputs = [ which asn2quickder bash ]; + + patchPhase = '' + substituteInPlace Makefile \ + --replace 'lib tool test rfc' 'lib test rfc' + substituteInPlace ./rfc/Makefile \ + --replace 'ASN2QUICKDER_CMD = ' 'ASN2QUICKDER_CMD = ${asn2quickder}/bin/asn2quickder #' + ''; + + installFlags = "ASN2QUICKDER_DIR=${asn2quickder}/bin ASN2QUICKDER_CMD=${asn2quickder}/bin/asn2quickder"; + installPhase = '' + mkdir -p $out/lib $out/man + make DESTDIR=$out PREFIX=/ all + make DESTDIR=$out PREFIX=/ install + ''; + + meta = with stdenv.lib; { + description = "Quick (and Easy) DER, a Library for parsing ASN.1"; + homepage = https://github.com/vanrein/quick-der; + license = licenses.bsd2; + platforms = platforms.linux; + maintainers = with maintainers; [ leenaars ]; + }; +} |