Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
82 lines
1.7 KiB
Nix
82 lines
1.7 KiB
Nix
{
|
|
buildDotnetModule,
|
|
fetchFromGitHub,
|
|
dotnetCorePackages,
|
|
copyDesktopItems,
|
|
makeDesktopItem,
|
|
lib,
|
|
runCommandLocal,
|
|
}:
|
|
let
|
|
version = "6.10";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "retrospy";
|
|
repo = "RetroSpy";
|
|
rev = "v${version}";
|
|
hash = "sha256-XupMQRBhX0w6Qv7t0BPhkrjDTOm5HdpLCLSq0gbC3Mk=";
|
|
};
|
|
|
|
executables = [
|
|
"RetroSpy"
|
|
"GBPemu"
|
|
"GBPUpdater"
|
|
"UsbUpdater"
|
|
];
|
|
|
|
retrospy-icons = runCommandLocal "retrospy-icons" { } ''
|
|
mkdir -p $out/share/retrospy
|
|
${builtins.concatStringsSep "\n" (
|
|
map (e: "cp ${src}/${e}.ico $out/share/retrospy/${e}.ico") executables
|
|
)}
|
|
'';
|
|
in
|
|
buildDotnetModule {
|
|
pname = "retrospy";
|
|
inherit version;
|
|
|
|
inherit src;
|
|
|
|
nativeBuildInputs = [
|
|
copyDesktopItems
|
|
];
|
|
|
|
projectFile = [
|
|
"RetroSpyX/RetroSpyX.csproj"
|
|
"GBPemuX/GBPemuX.csproj"
|
|
"GBPUpdaterX2/GBPUpdaterX2.csproj"
|
|
"UsbUpdaterX2/UsbUpdaterX2.csproj"
|
|
];
|
|
|
|
dotnet-sdk = dotnetCorePackages.sdk_8_0;
|
|
dotnet-runtime = dotnetCorePackages.aspnetcore_8_0;
|
|
|
|
nugetDeps = ./deps.json;
|
|
|
|
inherit executables;
|
|
|
|
passthru.updateScript = ./update.sh;
|
|
|
|
desktopItems = map (
|
|
e:
|
|
(makeDesktopItem {
|
|
name = e;
|
|
exec = e;
|
|
icon = "${retrospy-icons}/share/retrospy/${e}.ico";
|
|
desktopName = "${e}";
|
|
categories = [ "Utility" ];
|
|
startupWMClass = e;
|
|
})
|
|
) executables;
|
|
|
|
meta = {
|
|
description = "Live controller viewer for Nintendo consoles as well as many other retro consoles and computers";
|
|
homepage = "https://retro-spy.com/";
|
|
changelog = "https://github.com/retrospy/RetroSpy/releases/tag/${src.rev}";
|
|
license = lib.licenses.gpl3;
|
|
maintainers = [ lib.maintainers.naxdy ];
|
|
platforms = lib.platforms.linux;
|
|
mainProgram = "RetroSpy";
|
|
};
|
|
}
|