diff --git a/overlay.nix b/overlay.nix index bf2858ee..28010356 100644 --- a/overlay.nix +++ b/overlay.nix @@ -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 { }; } diff --git a/pkgs/deckbd/default.nix b/pkgs/deckbd/default.nix new file mode 100644 index 00000000..6f7e6673 --- /dev/null +++ b/pkgs/deckbd/default.nix @@ -0,0 +1,24 @@ +{ 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)" ]; +}