libusb-compat: 0.1.5 -> 0.1.7

Also, change the source repository to the GitHub repository pointed to by the
official website.
This commit is contained in:
Leon Schuermann 2018-10-14 21:51:39 +02:00 committed by Leon Schuermann
parent 65d5cc1499
commit 54bab3faaf

View File

@ -1,7 +1,8 @@
{stdenv, fetchurl, pkgconfig, libusb1}: {stdenv, fetchurl, pkgconfig, libusb1}:
stdenv.mkDerivation { stdenv.mkDerivation rec {
name = "libusb-compat-0.1.5"; name = "libusb-compat-${version}";
version = "0.1.7";
outputs = [ "out" "dev" ]; # get rid of propagating systemd closure outputs = [ "out" "dev" ]; # get rid of propagating systemd closure
outputBin = "dev"; outputBin = "dev";
@ -10,8 +11,8 @@ stdenv.mkDerivation {
propagatedBuildInputs = [ libusb1 ]; propagatedBuildInputs = [ libusb1 ];
src = fetchurl { src = fetchurl {
url = mirror://sourceforge/libusb/libusb-compat-0.1.5.tar.bz2; url = "https://github.com/libusb/libusb-compat-0.1/releases/download/v${version}/${name}.tar.gz";
sha256 = "0nn5icrfm9lkhzw1xjvaks9bq3w6mjg86ggv3fn7kgi4nfvg8kj0"; sha256 = "1y2wjba4w9r53sfaacj6awyqhmi31n53j4wwx8g8qj82m8wcwy86";
}; };
patches = stdenv.lib.optional stdenv.hostPlatform.isMusl ./fix-headers.patch; patches = stdenv.lib.optional stdenv.hostPlatform.isMusl ./fix-headers.patch;