dualsensectl: init at 0.3 (#240340)
This commit is contained in:
parent
2f543decdb
commit
415c06ac3b
2 changed files with 48 additions and 0 deletions
46
pkgs/tools/games/dualsensectl/default.nix
Normal file
46
pkgs/tools/games/dualsensectl/default.nix
Normal file
|
@ -0,0 +1,46 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, pkg-config
|
||||
, dbus
|
||||
, hidapi
|
||||
, udev
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "dualsensectl";
|
||||
version = "0.3";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "nowrep";
|
||||
repo = "dualsensectl";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-OZmZ+ENBBKzRZ9jLIn9Bz7oGYrSAjZ5XlOR9fpN0cZs=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace Makefile --replace "/usr/" "/"
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
pkg-config
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
dbus
|
||||
hidapi
|
||||
udev
|
||||
];
|
||||
|
||||
makeFlags = [
|
||||
"DESTDIR=$(out)"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Linux tool for controlling PS5 DualSense controller";
|
||||
homepage = "https://github.com/nowrep/dualsensectl";
|
||||
license = licenses.gpl2Only;
|
||||
maintainers = with maintainers; [ azuwis ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
|
@ -1591,6 +1591,8 @@ with pkgs;
|
|||
|
||||
donkey = callPackage ../tools/security/donkey { };
|
||||
|
||||
dualsensectl = callPackage ../tools/games/dualsensectl { };
|
||||
|
||||
dwarfs = callPackage ../tools/filesystems/dwarfs { };
|
||||
|
||||
etlegacy = callPackage ../games/etlegacy { lua = lua5_4; };
|
||||
|
|
Loading…
Reference in a new issue