nur-packages

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

default.nix (1117B)


      1 {
      2   lib,
      3   stdenv,
      4   fetchurl,
      5   undmg,
      6   xar,
      7   cpio,
      8 }:
      9 
     10 stdenv.mkDerivation rec {
     11   pname = "basecamp";
     12   version = "4.8.11";
     13 
     14   src = fetchurl {
     15     url = "https://download.garmin.com/software/BaseCampforMac_${
     16       lib.replaceStrings [ "." ] [ "" ] version
     17     }.dmg";
     18     sha256 = "1ql049xxb7021qssn55hj8f49bzhriia0yvcv5xs3vrya7ymmhgn";
     19   };
     20 
     21   preferLocalBuild = true;
     22 
     23   nativeBuildInputs = [
     24     undmg
     25     xar
     26     cpio
     27   ];
     28 
     29   sourceRoot = ".";
     30 
     31   installPhase = ''
     32     mkdir -p $out/Applications
     33 
     34     xar -xf Install\ BaseCamp.pkg
     35 
     36     for p in BaseCamp MapInstall MapManager; do
     37       zcat garmin$p.pkg/Payload | cpio -i
     38       cp -r Garmin\ $p.app $out/Applications
     39     done
     40   '';
     41 
     42   meta = {
     43     description = "BaseCamp lets you plan outdoor activities, organize your data and share your adventures with others";
     44     homepage = "https://www.garmin.com/en-US/software/basecamp/";
     45     changelog = "https://www8.garmin.com/support/download_details.jsp?id=4449";
     46     license = lib.licenses.unfree;
     47     maintainers = [ lib.maintainers.sikmir ];
     48     platforms = [ "x86_64-darwin" ];
     49     skip.ci = true;
     50   };
     51 }