From 71b964a7c095ecf981e74d6bb4557de36142e8da Mon Sep 17 00:00:00 2001 From: tv Date: Thu, 11 Apr 2024 04:29:15 +0200 Subject: hidapitester: init at 0.5 --- pkgs/simple/hidapitester.nix | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 pkgs/simple/hidapitester.nix (limited to 'pkgs') diff --git a/pkgs/simple/hidapitester.nix b/pkgs/simple/hidapitester.nix new file mode 100644 index 0000000..d30a11a --- /dev/null +++ b/pkgs/simple/hidapitester.nix @@ -0,0 +1,27 @@ +{ pkgs }: + +pkgs.stdenv.mkDerivation rec { + pname = "hidapitester"; + version = "0.5"; + + src = pkgs.fetchFromGitHub { + owner = "todbot"; + repo = "hidapitester"; + rev = "tags/${version}"; + hash = "sha256-QVc1P+FW4B9GZIzAg/BOKGnP7aotNUYdpzrc3/dPs58="; + }; + + installPhase = '' + mkdir -p $out/bin + cp hidapitester $out/bin/ + ''; + + nativeBuildInputs = [ + pkgs.pkg-config + ]; + + buildInputs = [ + pkgs.hidapi + pkgs.udev + ]; +} -- cgit v1.2.3