nur-packages

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

default.nix (803B)


      1 { lib, stdenv, fetchurl, jre, makeWrapper }:
      2 
      3 stdenv.mkDerivation rec {
      4   pname = "gpx-animator";
      5   version = "1.7.0";
      6 
      7   src = fetchurl {
      8     url = "https://download.gpx-animator.app/gpx-animator-${version}-all.jar";
      9     hash = "sha256-SiYaHFMHKbEA8whio3MeCq8QZ6bQGWU4i/ok8I28TpA=";
     10   };
     11 
     12   nativeBuildInputs = [ makeWrapper ];
     13 
     14   dontUnpack = true;
     15 
     16   installPhase = ''
     17     install -dm755 $out/bin
     18     install -Dm644 $src $out/share/java/${src.name}
     19 
     20     makeWrapper ${jre}/bin/java $out/bin/gpx-animator \
     21       --add-flags "-jar $out/share/java/gpx-animator-${version}-all.jar"
     22   '';
     23 
     24   meta = with lib; {
     25     description = "GPX Animator";
     26     homepage = "https://gpx-animator.app/";
     27     license = licenses.asl20;
     28     maintainers = [ maintainers.sikmir ];
     29     platforms = jre.meta.platforms;
     30   };
     31 }