Files
nixpkgs/pkgs/by-name/lu/lug-helper/package.nix
Dark Steveneq 646b892680
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
push sheeet
2025-10-09 14:15:47 +02:00

80 lines
1.9 KiB
Nix

{
stdenvNoCC,
lib,
makeDesktopItem,
makeWrapper,
copyDesktopItems,
coreutils,
findutils,
zenity,
unzip,
cabextract,
libnotify,
fetchFromGitHub,
nix-update-script,
}:
stdenvNoCC.mkDerivation (finalAttrs: {
name = "lug-helper";
version = "4.4";
src = fetchFromGitHub {
owner = "starcitizen-lug";
repo = "lug-helper";
tag = "v${finalAttrs.version}";
hash = "sha256-wYNYgwcves9nmUccDQPGekVt3BIB4QE/t6l9vUwXYUs=";
};
buildInputs = [
coreutils
findutils
zenity
];
nativeBuildInputs = [
copyDesktopItems
makeWrapper
];
desktopItems = [
(makeDesktopItem {
name = "lug-helper";
exec = "lug-helper";
icon = "lug-logo";
comment = "Star Citizen LUG Helper";
desktopName = "LUG Helper";
categories = [ "Utility" ];
mimeTypes = [ "application/x-lug-helper" ];
})
];
postInstall = ''
install -Dm755 lug-helper.sh $out/bin/lug-helper
install -Dm644 lug-logo.png $out/share/icons/hicolor/256x256/apps/lug-logo.png
install -Dm644 rsi-launcher.png $out/share/icons/hicolor/256x256/apps/rsi-launcher.png
install -Dm644 lib/* -t $out/share/lug-helper
wrapProgram $out/bin/lug-helper \
--prefix PATH : ${
lib.makeBinPath [
coreutils
findutils
zenity
cabextract
unzip
libnotify
]
} \
--prefix XDG_DATA_DIRS : "$out"
'';
passthru.updateScript = nix-update-script { };
meta = {
description = "Script to manage and optimize Star Citizen on Linux";
homepage = "https://github.com/starcitizen-lug/lug-helper";
changelog = "https://github.com/starcitizen-lug/lug-helper/releases/tag/v${finalAttrs.version}";
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [ fuzen ];
platforms = lib.platforms.linux;
mainProgram = "lug-helper";
};
})