1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/tools/misc/usb-modeswitch/data.nix

27 lines
800 B
Nix
Raw Normal View History

{ stdenv, fetchurl, tcl, usb-modeswitch }:
2016-03-23 00:53:33 +00:00
stdenv.mkDerivation rec {
name = "usb-modeswitch-data-${version}";
version = "20170806";
2016-03-23 00:53:33 +00:00
src = fetchurl {
url = "http://www.draisberghof.de/usb_modeswitch/${name}.tar.bz2";
sha256 = "0b1wari3aza6qjggqd0hk2zsh93k1q8scgmwh6f8wr0flpr3whff";
};
inherit (usb-modeswitch) makeFlags;
2016-03-23 00:53:33 +00:00
prePatch = ''
sed -i 's@usb_modeswitch@${usb-modeswitch}/bin/usb_modeswitch@g' 40-usb_modeswitch.rules
'';
# we add tcl here so we can patch in support for new devices by dropping config into
# the usb_modeswitch.d directory
nativeBuildInputs = [ tcl ];
2016-03-23 00:53:33 +00:00
meta = with stdenv.lib; {
description = "Device database and the rules file for 'multi-mode' USB devices";
inherit (usb-modeswitch.meta) license maintainers platforms;
2016-03-23 00:53:33 +00:00
};
}