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
133 lines
2.8 KiB
Nix
133 lines
2.8 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
rustPlatform,
|
|
fetchFromGitHub,
|
|
installShellFiles,
|
|
cmake,
|
|
pkg-config,
|
|
makeWrapper,
|
|
wrapGAppsHook3,
|
|
bzip2,
|
|
fontconfig,
|
|
freetype,
|
|
libGL,
|
|
libX11,
|
|
libXcursor,
|
|
libXrandr,
|
|
libXi,
|
|
libxkbcommon,
|
|
vulkan-loader,
|
|
wayland,
|
|
zenity,
|
|
kdePackages,
|
|
cairo,
|
|
pango,
|
|
atkmm,
|
|
gdk-pixbuf,
|
|
dbus-glib,
|
|
gtk3,
|
|
glib,
|
|
rclone,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage (finalAttrs: {
|
|
pname = "ludusavi";
|
|
version = "0.29.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mtkennerly";
|
|
repo = "ludusavi";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-IApPudo8oD6YkYJkGpowqpaqrsl2/Q2VFyYfYQI3mN0=";
|
|
};
|
|
|
|
cargoHash = "sha256-ixxUz+XJPzPu51sxHpXs92Tis2gj9SElqYtNiN+n2EY=";
|
|
|
|
dontWrapGApps = true;
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
installShellFiles
|
|
pkg-config
|
|
makeWrapper
|
|
wrapGAppsHook3
|
|
];
|
|
|
|
buildInputs = [
|
|
fontconfig
|
|
freetype
|
|
libX11
|
|
libXcursor
|
|
libXrandr
|
|
libXi
|
|
cairo
|
|
pango
|
|
atkmm
|
|
gdk-pixbuf
|
|
gtk3
|
|
];
|
|
|
|
postInstall = ''
|
|
install -Dm644 assets/linux/com.mtkennerly.ludusavi.metainfo.xml -t \
|
|
"$out/share/metainfo/"
|
|
install -Dm644 assets/icon.png \
|
|
"$out/share/icons/hicolor/64x64/apps/com.mtkennerly.ludusavi.png"
|
|
install -Dm644 assets/icon.svg \
|
|
"$out/share/icons/hicolor/scalable/apps/com.mtkennerly.ludusavi.svg"
|
|
install -Dm644 "assets/linux/com.mtkennerly.ludusavi.desktop" -t "$out/share/applications/"
|
|
install -Dm644 assets/MaterialIcons-Regular.ttf -t "$out/share/fonts/TTF/"
|
|
install -Dm644 LICENSE -t "$out/share/licenses/ludusavi/"
|
|
''
|
|
+ lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
|
installShellCompletion --cmd ludusavi \
|
|
--bash <($out/bin/ludusavi complete bash) \
|
|
--fish <($out/bin/ludusavi complete fish) \
|
|
--zsh <($out/bin/ludusavi complete zsh)
|
|
'';
|
|
|
|
postFixup =
|
|
let
|
|
libPath = lib.makeLibraryPath [
|
|
libGL
|
|
bzip2
|
|
fontconfig
|
|
freetype
|
|
libX11
|
|
libXcursor
|
|
libXrandr
|
|
libXi
|
|
libxkbcommon
|
|
vulkan-loader
|
|
wayland
|
|
gtk3
|
|
dbus-glib
|
|
glib
|
|
];
|
|
in
|
|
''
|
|
patchelf --set-rpath "${libPath}" "$out/bin/ludusavi"
|
|
wrapProgram $out/bin/ludusavi --prefix PATH : ${
|
|
lib.makeBinPath [
|
|
rclone
|
|
zenity
|
|
kdePackages.kdialog
|
|
]
|
|
} \
|
|
"''${gappsWrapperArgs[@]}"
|
|
'';
|
|
|
|
meta = {
|
|
description = "Backup tool for PC game saves";
|
|
homepage = "https://github.com/mtkennerly/ludusavi";
|
|
changelog = "https://github.com/mtkennerly/ludusavi/blob/v${finalAttrs.version}/CHANGELOG.md";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [
|
|
pasqui23
|
|
megheaiulian
|
|
iedame
|
|
];
|
|
mainProgram = "ludusavi";
|
|
};
|
|
})
|