nixpkgs/pkgs/by-name/du/dualsensectl/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

53 lines
1.1 KiB
Nix
Raw Normal View History

{
lib,
stdenv,
fetchFromGitHub,
pkg-config,
dbus,
hidapi,
udev,
testers,
nix-update-script,
2023-07-02 15:08:23 +00:00
}:
stdenv.mkDerivation (finalAttrs: {
2023-07-02 15:08:23 +00:00
pname = "dualsensectl";
2024-08-21 06:20:14 +00:00
version = "0.6";
2023-07-02 15:08:23 +00:00
src = fetchFromGitHub {
owner = "nowrep";
repo = "dualsensectl";
rev = "v${finalAttrs.version}";
2024-08-21 06:20:14 +00:00
hash = "sha256-Wu3TcnHoMZELC7I2PlE8z00+CycgpNd6SiZd5MjYD+I=";
2023-07-02 15:08:23 +00:00
};
postPatch = ''
substituteInPlace Makefile --replace "/usr/" "/"
'';
nativeBuildInputs = [ pkg-config ];
2023-07-02 15:08:23 +00:00
buildInputs = [
dbus
hidapi
udev
];
makeFlags = [ "DESTDIR=$(out)" ];
passthru = {
tests.version = testers.testVersion { package = finalAttrs.finalPackage; };
updateScript = nix-update-script { };
};
2023-07-02 15:08:23 +00:00
meta = with lib; {
changelog = "https://github.com/nowrep/dualsensectl/releases/tag/v${finalAttrs.version}";
2023-07-02 15:08:23 +00:00
description = "Linux tool for controlling PS5 DualSense controller";
homepage = "https://github.com/nowrep/dualsensectl";
license = licenses.gpl2Only;
2023-08-17 19:39:36 +00:00
mainProgram = "dualsensectl";
2023-07-02 15:08:23 +00:00
maintainers = with maintainers; [ azuwis ];
platforms = platforms.linux;
};
})