Skip to content

Commit

Permalink
deckbd: init at 0-unstable-2023-03-16
Browse files Browse the repository at this point in the history
  • Loading branch information
hacker1024 committed Jun 30, 2024
1 parent 2f9668e commit 97492c9
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
2 changes: 2 additions & 0 deletions overlay.nix
Original file line number Diff line number Diff line change
Expand Up @@ -103,4 +103,6 @@ rec {

decky-loader = final.callPackage ./pkgs/decky-loader/stable.nix { };
decky-loader-prerelease = final.callPackage ./pkgs/decky-loader/prerelease.nix { };

deckbd = final.callPackage ./pkgs/deckbd { };
}
33 changes: 33 additions & 0 deletions pkgs/deckbd/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{ lib
, stdenv
, fetchFromGitHub
, pkg-config
, glib
, libevdev
}:

stdenv.mkDerivation {
pname = "deckbd";
version = "0-unstable-2023-03-16";

src = fetchFromGitHub {
owner = "Ninlives";
repo = "deckbd";
rev = "327a8c91159e1b7faa2f12b5e11060b2eb9947a8";
hash = "sha256-T7iYl1xWtk39XMUUWm1pK0WVm5UK656HmqWHKDmJ220=";
};

nativeBuildInputs = [ pkg-config ];

buildInputs = [ glib libevdev ];

makeFlags = [ "PREFIX=$(out)" ];

meta = {
description = "Steam Deck controller keymapper";
homepage = "https://github.com/Ninlives/deckbd";
license = lib.licenses.unfree; # https://github.com/Ninlives/deckbd/issues/1
mainProgram = "deckbd";
platforms = lib.platforms.linux;
};
}

0 comments on commit 97492c9

Please sign in to comment.