nixpkgs/pkgs/applications/misc/golden-cheetah-bin/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

38 lines
1.2 KiB
Nix
Raw Normal View History

2023-08-08 00:50:07 +00:00
{ appimageTools, lib, fetchurl, nix-update-script, stdenv }:
let
pname = "golden-cheetah";
2023-08-08 00:50:07 +00:00
version = "3.6";
src = fetchurl {
2023-08-08 00:50:07 +00:00
url = "https://github.com/GoldenCheetah/GoldenCheetah/releases/download/v${version}/GoldenCheetah_v${version}_x64.AppImage";
hash = "sha256-PMRUDQSQxbECbF9SPOo03t4Xxj1OtYJAPXEMyyy6EVY=";
};
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/
'';
2023-08-08 00:50:07 +00:00
passthru.updateScript = nix-update-script { };
meta = {
description = "Performance software for cyclists, runners and triathletes. This version includes the API Tokens for e.g. Strava";
2023-08-08 00:50:07 +00:00
platforms = lib.platforms.linux;
broken = !stdenv.isx86_64;
maintainers = with lib.maintainers; [ gador adamcstephens ];
2023-08-08 00:50:07 +00:00
license = lib.licenses.gpl2Plus;
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
};
}