2023-10-09 19:29:22 +00:00
|
|
|
{ appimageTools, lib, fetchurl, nix-update-script, stdenv }:
|
2023-04-12 12:48:02 +00:00
|
|
|
let
|
|
|
|
|
|
|
|
pname = "golden-cheetah";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "3.6";
|
2023-04-12 12:48:02 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2023-10-09 19:29:22 +00:00
|
|
|
url = "https://github.com/GoldenCheetah/GoldenCheetah/releases/download/v${version}/GoldenCheetah_v${version}_x64.AppImage";
|
|
|
|
hash = "sha256-PMRUDQSQxbECbF9SPOo03t4Xxj1OtYJAPXEMyyy6EVY=";
|
2023-04-12 12:48:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
appimageContents = appimageTools.extract { inherit pname src version; };
|
|
|
|
in
|
|
|
|
appimageTools.wrapType2 {
|
|
|
|
inherit pname src version;
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
extraPkgs = pkgs: [ pkgs.R pkgs.zlib pkgs.libusb-compat-0_1 ];
|
2023-04-12 12:48:02 +00:00
|
|
|
|
|
|
|
extraInstallCommands = ''
|
2024-05-15 15:35:15 +00:00
|
|
|
mv $out/bin/${pname} $out/bin/GoldenCheetah
|
2023-04-12 12:48:02 +00:00
|
|
|
mkdir -p $out/share/applications
|
|
|
|
mkdir -p $out/share/pixmaps
|
|
|
|
cp ${appimageContents}/GoldenCheetah.desktop $out/share/applications/
|
|
|
|
cp ${appimageContents}/gc.png $out/share/pixmaps/
|
|
|
|
'';
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
|
|
|
|
meta = {
|
2023-04-12 12:48:02 +00:00
|
|
|
description = "Performance software for cyclists, runners and triathletes. This version includes the API Tokens for e.g. Strava";
|
2023-10-09 19:29:22 +00:00
|
|
|
platforms = lib.platforms.linux;
|
2023-04-12 12:48:02 +00:00
|
|
|
broken = !stdenv.isx86_64;
|
2023-10-09 19:29:22 +00:00
|
|
|
maintainers = with lib.maintainers; [ gador adamcstephens ];
|
|
|
|
license = lib.licenses.gpl2Plus;
|
|
|
|
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
|
|
|
|
knownVulnerabilities = [ "Vendors libwebp vulnerable to CVE-2023-4863" ];
|
2023-04-12 12:48:02 +00:00
|
|
|
};
|
|
|
|
}
|