-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdefault.nix
71 lines (65 loc) · 1.65 KB
/
default.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
{
stdenvNoCC,
lib,
makeDesktopItem,
makeWrapper,
copyDesktopItems,
coreutils,
findutils,
zenity,
fetchFromGitHub,
nix-update-script,
}:
stdenvNoCC.mkDerivation (finalAttrs: {
name = "lug-helper";
version = "3.0.1";
src = fetchFromGitHub {
owner = "starcitizen-lug";
repo = "lug-helper";
rev = "refs/tags/v${finalAttrs.version}";
hash = "sha256-GL+pPyj3Qz+wmJD59kfGz80LufotPq2KdaLQCkQnCFg=";
};
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
]
}
'';
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";
};
})