nur-packages

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

bin.nix (1112B)


      1 { lib, stdenv, fetchurl, unzip, mono, gtk2, makeWrapper }:
      2 
      3 stdenv.mkDerivation (finalAttrs: {
      4   pname = "maperitive-bin";
      5   version = "2.4.3";
      6 
      7   src = fetchurl {
      8     url = "http://maperitive.net/download/Maperitive-${finalAttrs.version}.zip";
      9     hash = "sha256-yhslRj4CjUY0kviQTI7z8LvSiWvjf7K8+tDMeA9zNEk=";
     10   };
     11 
     12   nativeBuildInputs = [ unzip makeWrapper ];
     13 
     14   installPhase = ''
     15     mkdir -p $out/opt/maperitive
     16     cp -r . $out/opt/maperitive
     17 
     18     makeWrapper ${mono}/bin/mono $out/bin/maperitive \
     19       --prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ gtk2 ]} \
     20       --run "[ -d \$HOME/.maperitive ] || { cp -r $out/opt/maperitive \$HOME/.maperitive && chmod -R +w \$HOME/.maperitive; }" \
     21       --add-flags "--desktop \$HOME/.maperitive/Maperitive.exe"
     22   '';
     23 
     24   meta = with lib; {
     25     description = "Desktop application for drawing maps based on OpenStreetMap and GPS data";
     26     homepage = "http://maperitive.net/";
     27     changelog = "http://maperitive.net/updates.xml";
     28     license = licenses.free;
     29     maintainers = [ maintainers.sikmir ];
     30     platforms = platforms.linux;
     31     skip.ci = true;
     32   };
     33 })