nur-packages

My NUR packages
git clone git://git.sikmir.ru/nur-packages
Log | Files | Refs | README | LICENSE

commit 5c69c2cfdd299451c495b309b5c9838d3c008801
parent be97a2c6fefec2fcc623833984863153dbb10d73
Author: Nikolay Korotkiy <sikmir@gmail.com>
Date:   Mon,  3 Aug 2020 02:43:41 +0300

Add basecamp

Diffstat:
Apkgs/applications/basecamp/default.nix | 39+++++++++++++++++++++++++++++++++++++++
Mpkgs/default.nix | 1+
2 files changed, 40 insertions(+), 0 deletions(-)

diff --git a/pkgs/applications/basecamp/default.nix b/pkgs/applications/basecamp/default.nix @@ -0,0 +1,39 @@ +{ stdenv, fetchurl, undmg, xar, cpio }: +let + pname = "basecamp"; + version = "4.8.9"; +in +stdenv.mkDerivation { + inherit pname version; + + src = fetchurl { + url = "https://download.garmin.com/software/BaseCampforMac_${stdenv.lib.replaceStrings [ "." ] [ "" ] version}.dmg"; + sha256 = "1bg0hpqhs6bqg6ihvn0ffi442xzsg7ym2slqxvsg4lqsrxirkp3x"; + }; + + preferLocalBuild = true; + + nativeBuildInputs = [ undmg xar cpio ]; + + sourceRoot = "."; + + installPhase = '' + mkdir -p $out/Applications + + xar -xf Install\ BaseCamp.pkg + + for p in BaseCamp MapInstall MapManager; do + zcat garmin$p.pkg/Payload | cpio -i + cp -r Garmin\ $p.app $out/Applications + done + ''; + + meta = with stdenv.lib; { + description = "BaseCamp lets you plan outdoor activities, organize your data and share your adventures with others"; + homepage = "https://www.garmin.com/en-US/software/basecamp/"; + license = licenses.unfree; + maintainers = [ maintainers.sikmir ]; + platforms = [ "x86_64-darwin" ]; + skip.ci = true; + }; +} diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -9,6 +9,7 @@ lib.makeScope newScope ( ### APPLICATIONS anki-bin = callPackage ./applications/anki/bin.nix { }; + basecamp = callPackage ./applications/basecamp { }; goldendict-bin = callPackage ./applications/goldendict/bin.nix { }; gpxlab = libsForQt5.callPackage ./applications/gpxlab { inherit sources;