2024-08-01 07:14:19 -06:00
|
|
|
{
|
|
|
|
stdenvNoCC,
|
|
|
|
lib,
|
|
|
|
makeDesktopItem,
|
|
|
|
makeWrapper,
|
|
|
|
copyDesktopItems,
|
|
|
|
coreutils,
|
|
|
|
findutils,
|
|
|
|
zenity,
|
|
|
|
fetchFromGitHub,
|
|
|
|
nix-update-script,
|
|
|
|
}:
|
|
|
|
stdenvNoCC.mkDerivation (finalAttrs: {
|
|
|
|
name = "lug-helper";
|
2024-10-20 16:03:03 -06:00
|
|
|
version = "3.0.1";
|
2024-08-01 07:14:19 -06:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "starcitizen-lug";
|
|
|
|
repo = "lug-helper";
|
|
|
|
rev = "refs/tags/v${finalAttrs.version}";
|
2024-10-20 16:03:03 -06:00
|
|
|
hash = "sha256-GL+pPyj3Qz+wmJD59kfGz80LufotPq2KdaLQCkQnCFg=";
|
2024-08-01 07:14:19 -06:00
|
|
|
};
|
|
|
|
|
|
|
|
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
|
2024-10-20 16:03:03 -06:00
|
|
|
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
|
2024-08-01 07:14:19 -06:00
|
|
|
install -Dm644 lib/* -t $out/share/lug-helper
|
|
|
|
|
|
|
|
wrapProgram $out/bin/lug-helper \
|
|
|
|
--prefix PATH : ${
|
|
|
|
lib.makeBinPath [
|
|
|
|
coreutils
|
|
|
|
findutils
|
|
|
|
zenity
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
'';
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
meta = {
|
|
|
|
description = "Script to manage and optimize Star Citizen on Linux";
|
|
|
|
homepage = "https://github.com/starcitizen-lug/lug-helper";
|
|
|
|
license = lib.licenses.gpl3Only;
|
|
|
|
maintainers = with lib.maintainers; [ fuzen ];
|
|
|
|
platforms = lib.platforms.linux;
|
|
|
|
mainProgram = "lug-helper";
|
|
|
|
};
|
|
|
|
})
|