mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-20 02:55:39 +00:00
dualsensectl: init at 0.3 (#240340)
This commit is contained in:
parent
2f543decdb
commit
415c06ac3b
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 { };
|
donkey = callPackage ../tools/security/donkey { };
|
||||||
|
|
||||||
|
dualsensectl = callPackage ../tools/games/dualsensectl { };
|
||||||
|
|
||||||
dwarfs = callPackage ../tools/filesystems/dwarfs { };
|
dwarfs = callPackage ../tools/filesystems/dwarfs { };
|
||||||
|
|
||||||
etlegacy = callPackage ../games/etlegacy { lua = lua5_4; };
|
etlegacy = callPackage ../games/etlegacy { lua = lua5_4; };
|
||||||
|
Loading…
Reference in New Issue
Block a user