Skip to content

Commit

Permalink
Merge pull request NixOS#271014 from bjornfor/backport-dualsensectl
Browse files Browse the repository at this point in the history
[23.05] dualsensectl: init at 0.4
  • Loading branch information
NickCao authored Nov 30, 2023
2 parents 580d83f + b35b2b0 commit 8798ad7
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
47 changes: 47 additions & 0 deletions pkgs/tools/games/dualsensectl/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{ lib
, stdenv
, fetchFromGitHub
, pkg-config
, dbus
, hidapi
, udev
}:

stdenv.mkDerivation rec {
pname = "dualsensectl";
version = "0.4";

src = fetchFromGitHub {
owner = "nowrep";
repo = "dualsensectl";
rev = "v${version}";
hash = "sha256-DrPVzbaLO2NgjNcEFyCs2W+dlbdpBeRX1ZfFenqz7IY=";
};

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;
mainProgram = "dualsensectl";
maintainers = with maintainers; [ azuwis ];
platforms = platforms.linux;
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -1528,6 +1528,8 @@ with pkgs;

dolbybcsoftwaredecode = callPackage ../applications/audio/dolbybcsoftwaredecode { };

dualsensectl = callPackage ../tools/games/dualsensectl { };

dwarfs = callPackage ../tools/filesystems/dwarfs { };

etlegacy = callPackage ../games/etlegacy { lua = lua5_4; };
Expand Down

0 comments on commit 8798ad7

Please sign in to comment.