nur-packages

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

default.nix (933B)


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