2023-04-12 12:48:02 +00:00
|
|
|
{ appimageTools, lib, fetchurl, stdenv }:
|
|
|
|
let
|
|
|
|
|
|
|
|
pname = "golden-cheetah";
|
2023-04-29 16:46:19 +00:00
|
|
|
version = "3.6-RC4";
|
2023-04-12 12:48:02 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/GoldenCheetah/GoldenCheetah/releases/download/v${version}/GoldenCheetah_v3.6-DEV_x64.AppImage";
|
2023-04-29 16:46:19 +00:00
|
|
|
hash = "sha256-I5GafK/W1djSx67xrjcMyPqMSqGW9AfrcPYcGcf0Pag=";
|
2023-04-12 12:48:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
appimageContents = appimageTools.extract { inherit pname src version; };
|
|
|
|
in
|
|
|
|
appimageTools.wrapType2 {
|
|
|
|
inherit pname src version;
|
|
|
|
|
|
|
|
extraPkgs = pkgs: with pkgs; [ R zlib libusb-compat-0_1 ];
|
|
|
|
|
|
|
|
extraInstallCommands = ''
|
|
|
|
mv $out/bin/${pname}-${version} $out/bin/GoldenCheetah
|
|
|
|
mkdir -p $out/share/applications
|
|
|
|
mkdir -p $out/share/pixmaps
|
|
|
|
cp ${appimageContents}/GoldenCheetah.desktop $out/share/applications/
|
|
|
|
cp ${appimageContents}/gc.png $out/share/pixmaps/
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Performance software for cyclists, runners and triathletes. This version includes the API Tokens for e.g. Strava";
|
|
|
|
platforms = platforms.linux;
|
|
|
|
broken = !stdenv.isx86_64;
|
|
|
|
maintainers = with maintainers; [ gador ];
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
|
|
|
|
};
|
|
|
|
}
|