Nixfiles/pkgs/wowup.nix

34 lines
1 KiB
Nix
Raw Normal View History

{
appimageTools,
fetchurl,
2023-02-03 18:53:43 +01:00
lib,
}:
2023-02-03 18:53:43 +01:00
appimageTools.wrapType2 rec {
pname = "wowup-cf";
2024-05-02 19:22:59 +02:00
version = "2.11.1";
2023-02-03 18:53:43 +01:00
src = fetchurl {
2023-02-03 18:53:43 +01:00
url = "https://github.com/WowUp/WowUp.CF/releases/download/v${version}/WowUp-CF-${version}.AppImage";
2024-05-02 19:22:59 +02:00
sha256 = "sha256-jc9e+0zPJufZaIMhQ8nSFJwKFikuTyDLAxBWaOHf9qI=";
2023-02-03 18:53:43 +01:00
};
extraInstallCommands =
let
appimageContents = appimageTools.extractType2 { inherit pname version src; };
in
''
install -m 444 -D ${appimageContents}/wowup-cf.desktop $out/share/applications/wowup-cf.desktop
substituteInPlace $out/share/applications/wowup-cf.desktop --replace 'Exec=AppRun' 'Exec=${pname}'
install -m 444 -D ${appimageContents}/usr/share/icons/hicolor/512x512/apps/wowup-cf.png \
$out/share/icons/hicolor/512x512/apps/wowup-cf.png
'';
2023-02-03 18:53:43 +01:00
meta = with lib; {
homepage = "https://wowup.io/";
description = "Tool to install world of warcraft addons";
license = licenses.gpl3Plus;
platforms = [ "x86_64-linux" ];
maintainers = with maintainers; [ traxys ];
};
}