7 stdenv.mkDerivation rec {
9 # not tagged, but changelog has this with the date of the e9a9d6c commit
10 # and no significant change occured between bumping the version in the Makefile and that
11 # and the changes since then (up to ff822d8) seem snap related
14 src = fetchFromGitHub {
17 rev = "e9a9d6c4a533430e763e111a349efbba69e7a5bb";
18 sha256 = "0k9qmhqi206gcnv3z4vwya82g5nm225972ylf67zjiikk8pn8m0s";
21 buildInputs = [ libusb1 ];
24 substituteInPlace Makefile \
25 --replace /usr/include/libusb-1.0 ${libusb1.dev}/include/libusb-1.0
29 "DESTDIR=${placeholder "out"}"
34 broken = stdenv.isDarwin;
35 description = "Perform a bus reset on a USB device using its vendor and product ID";
36 homepage = "https://github.com/ralight/usb-reset";
37 changelog = "https://github.com/ralight/usb-reset/blob/master/ChangeLog.txt";
38 license = licenses.mit;
39 maintainers = [ maintainers.evils ];
40 platforms = platforms.all;