diff --git a/pkgs/tools/games/dualsensectl/default.nix b/pkgs/tools/games/dualsensectl/default.nix new file mode 100644 index 000000000000..f08622aa3a73 --- /dev/null +++ b/pkgs/tools/games/dualsensectl/default.nix @@ -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; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index a5e41abf0f98..9eec24580ae1 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -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; };