default.nix (636B)
1 { stdenv, hidapi, fetchFromGitHub }: 2 3 stdenv.mkDerivation rec { 4 name = "footswitch-${version}"; 5 version = "git-2015-06-23"; 6 7 src = fetchFromGitHub { 8 repo = "footswitch"; 9 owner = "rgerganov"; 10 rev = "cbb9091277a34adf236ee90e0f3895e35359051c"; 11 sha256 = "0b5s8wccvk5825kplac6nzfqjzjfyml6qvk0qpf6md9dq0f9fy16"; 12 }; 13 14 makeFlags = "PREFIX=$(out)"; 15 16 patches = [ ./patch.diff ]; 17 18 buildInputs = [ hidapi ]; 19 20 meta = with stdenv.lib; { 21 description = "footswitch usb driver"; 22 homepage = "https://github.com/rgerganov/footswitch"; 23 maintainers = with maintainers; [ jb55 ]; 24 license = licenses.mit; 25 }; 26 }