Skip to content

Commit

Permalink
moondeck-buddy: init at 1.6.3
Browse files Browse the repository at this point in the history
  • Loading branch information
redxtech committed Jan 24, 2025
1 parent 538bf58 commit e204e88
Showing 1 changed file with 67 additions and 0 deletions.
67 changes: 67 additions & 0 deletions pkgs/by-name/mo/moondeck-buddy/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
{
lib,
stdenv,
fetchFromGitHub,
nix-update-script,
kdePackages,
cmake,
ninja,
qt6,
procps,
xorg,
steam,
useNixSteam ? true,
}:

let
pname = "moondeck-buddy";
version = "1.6.3";

inherit (kdePackages) qtbase wrapQtAppsHook;
qtEnv =
with qt6;
env "qt-env-custom-${qtbase.version}" [
qthttpserver
qtwebsockets
];
in
stdenv.mkDerivation {
inherit pname version;

src = fetchFromGitHub {
owner = "FrogTheFrog";
repo = pname;
tag = "v${version}";
fetchSubmodules = true;
hash = "sha256-CcORcojz3jh1UZpq5qjDv+YktXC+F8t+r7E1SFyFkmw=";
};

buildInputs = [
procps
xorg.libXrandr
qtbase
qtEnv
];
nativeBuildInputs = [
cmake
ninja
wrapQtAppsHook
];

postPatch = lib.optionalString useNixSteam ''
substituteInPlace src/lib/os/linux/steamregistryobserver.cpp \
--replace-fail /usr/bin/steam ${lib.getExe steam};
'';

passthru.updateScript = nix-update-script { };

meta = {
mainProgram = "MoonDeckBuddy";
description = "Helper to work with moonlight on a steamdeck";
homepage = "https://github.com/FrogTheFrog/${pname}";
changelog = "https://github.com/FrogTheFrog/${pname}/releases/tag/v${version}";
license = lib.licenses.lgpl3Only;
maintainers = with lib.maintainers; [ redxtech ];
platforms = lib.platforms.linux;
};
}

0 comments on commit e204e88

Please sign in to comment.