dualsensectl: init at 0.3 (#240340)

This commit is contained in:
Zhong Jianxin 2023-07-02 23:08:23 +08:00 committed by GitHub
parent 2f543decdb
commit 415c06ac3b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 48 additions and 0 deletions

View 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;
};
}

View file

@ -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; };