depot/third_party/nixpkgs/pkgs/tools/games/dualsensectl/default.nix
Default email 9c6ee729d6 Project import generated by Copybara.
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
2023-07-15 19:15:38 +02:00

46 lines
807 B
Nix

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