nixpkgs/pkgs/applications/misc/gpsprune/default.nix
R. RyanTM d7ac3818d3
gpsprune: 18.6 -> 19
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools.

This update was made based on information from https://repology.org/metapackage/gpsprune/versions.

These checks were done:

- built on NixOS
- Warning: no invocation of /nix/store/akzrr13fzbw4ympkxcjp4v434hbfw6nb-gpsprune-19/bin/gpsprune had a zero exit code or showed the expected version
- 0 of 1 passed binary check by having a zero exit code.
- 0 of 1 passed binary check by having the new version present in output.
- found 19 with grep in /nix/store/akzrr13fzbw4ympkxcjp4v434hbfw6nb-gpsprune-19
- directory tree listing: https://gist.github.com/093deda67a3697cfb7ceb5e487494b74
- du listing: https://gist.github.com/c4d02de001bcd6a66916da90695ae515
2018-05-17 19:03:36 +02:00

49 lines
1.4 KiB
Nix

{ fetchurl, stdenv, makeDesktopItem, unzip, bash, jre8 }:
stdenv.mkDerivation rec {
name = "gpsprune-${version}";
version = "19";
src = fetchurl {
url = "http://activityworkshop.net/software/gpsprune/gpsprune_${version}.jar";
sha256 = "0n08fg55zgpfg1f6lq0n3ngi0n8af1r0rhmbnpik5mjng4m9g3x5";
};
phases = [ "installPhase" ];
buildInputs = [ jre8 ];
desktopItem = makeDesktopItem {
name = "gpsprune";
exec = "gpsprune";
icon = "gpsprune";
desktopName = "GpsPrune";
genericName = "GPS Data Editor";
comment = meta.description;
categories = "Education;Geoscience;";
};
installPhase = ''
mkdir -p $out/bin $out/share/java
cp -v $src $out/share/java/gpsprune.jar
cat > $out/bin/gpsprune <<EOF
#!${bash}/bin/bash
exec ${jre8}/bin/java -jar $out/share/java/gpsprune.jar "\$@"
EOF
chmod 755 $out/bin/gpsprune
mkdir -p $out/share/applications
cp $desktopItem/share/applications"/"* $out/share/applications
mkdir -p $out/share/pixmaps
${unzip}/bin/unzip -p $src tim/prune/gui/images/window_icon_64.png > $out/share/pixmaps/gpsprune.png
'';
meta = with stdenv.lib; {
description = "Application for viewing, editing and converting GPS coordinate data";
homepage = https://activityworkshop.net/software/gpsprune/;
license = licenses.gpl2Plus;
maintainers = [ maintainers.rycee ];
platforms = platforms.all;
};
}