Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 43 lines 731 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 autoreconfHook, 6 pkg-config, 7 imagemagick, 8 gtk3, 9}: 10 11stdenv.mkDerivation rec { 12 pname = "usbview"; 13 version = "3.1"; 14 15 src = fetchFromGitHub { 16 owner = "gregkh"; 17 repo = "usbview"; 18 rev = "v${version}"; 19 hash = "sha256-h+sB83BYsrB2VxwtatPWNiM0WdTCMY289nh+/0o8GOw="; 20 }; 21 22 nativeBuildInputs = [ 23 autoreconfHook 24 pkg-config 25 imagemagick 26 ]; 27 28 buildInputs = [ 29 gtk3 30 ]; 31 32 meta = with lib; { 33 description = "USB viewer for Linux"; 34 license = licenses.gpl2Only; 35 homepage = "http://www.kroah.com/linux-usb/"; 36 maintainers = with maintainers; [ 37 shamilton 38 h7x4 39 ]; 40 platforms = platforms.linux; 41 mainProgram = "usbview"; 42 }; 43}