libmicrohttpd: support for multiple versions

This commit is contained in:
Raghav Sood 2020-11-28 16:18:39 +00:00
parent 00f7db841a
commit 55da29694c
No known key found for this signature in database
GPG Key ID: 947862F324C79D21
4 changed files with 25 additions and 8 deletions

View File

@ -0,0 +1,10 @@
{ stdenv, callPackage, fetchurl }:
callPackage ./generic.nix ( rec {
version = "0.9.70";
src = fetchurl {
url = "mirror://gnu/libmicrohttpd/libmicrohttpd-${version}.tar.gz";
sha256 = "01vkjy89b1ylmh22dy5yza2r414nfwcfixxh3v29nvzrjv9s7l4h";
};
})

View File

@ -0,0 +1,10 @@
{ stdenv, callPackage, fetchurl }:
callPackage ./generic.nix ( rec {
version = "0.9.71";
src = fetchurl {
url = "mirror://gnu/libmicrohttpd/libmicrohttpd-${version}.tar.gz";
sha256 = "10mii4mifmfs3v7kgciqml7f0fj7ljp0sngrx64pnwmgbzl4bx78";
};
})

View File

@ -1,13 +1,8 @@
{ stdenv, fetchurl, libgcrypt, curl, gnutls, pkgconfig, libiconv, libintl }:
{ stdenv, libgcrypt, curl, gnutls, pkgconfig, libiconv, libintl, version, src }:
stdenv.mkDerivation rec {
pname = "libmicrohttpd";
version = "0.9.71";
src = fetchurl {
url = "mirror://gnu/libmicrohttpd/${pname}-${version}.tar.gz";
sha256 = "10mii4mifmfs3v7kgciqml7f0fj7ljp0sngrx64pnwmgbzl4bx78";
};
inherit version src;
outputs = [ "out" "dev" "devdoc" "info" ];
nativeBuildInputs = [ pkgconfig ];

View File

@ -14289,7 +14289,9 @@ in
libmemcached = callPackage ../development/libraries/libmemcached { };
libmicrohttpd = callPackage ../development/libraries/libmicrohttpd { };
libmicrohttpd_0_9_70 = callPackage ../development/libraries/libmicrohttpd/0.9.70.nix { };
libmicrohttpd_0_9_71 = callPackage ../development/libraries/libmicrohttpd/0.9.71.nix { };
libmicrohttpd = libmicrohttpd_0_9_71;
libmikmod = callPackage ../development/libraries/libmikmod {
inherit (darwin.apple_sdk.frameworks) CoreAudio;