default.nix (1042B)
1 { lib, stdenv, fetchFromGitHub, buildPerlPackage, shortenPerlShebang, XMLParser }: 2 3 buildPerlPackage rec { 4 pname = "gpx-layer"; 5 version = "2013-09-19"; 6 7 src = fetchFromGitHub { 8 owner = "ericfischer"; 9 repo = pname; 10 rev = "746b4723cf1f69fb86d45cf2d4efeaae9e711d2d"; 11 sha256 = "0v5vfjqm5flmr30mpgabjwzy4avxl620051pcw03sdf3za8xkpr3"; 12 }; 13 14 outputs = [ "out" ]; 15 16 nativeBuildInputs = lib.optional stdenv.isDarwin shortenPerlShebang; 17 18 propagatedBuildInputs = [ XMLParser ]; 19 20 preConfigure = "touch Makefile.PL"; 21 22 installPhase = '' 23 install -Dm755 parse-gpx $out/bin/datamaps-parse-gpx 24 '' + lib.optionalString stdenv.isLinux '' 25 patchShebangs $out/bin/datamaps-parse-gpx 26 '' + lib.optionalString stdenv.isDarwin '' 27 shortenPerlShebang $out/bin/datamaps-parse-gpx 28 ''; 29 30 meta = with lib; { 31 description = "Tools to turn GPX files into a GPS map tracing layer"; 32 inherit (src.meta) homepage; 33 license = licenses.free; 34 maintainers = [ maintainers.sikmir ]; 35 platforms = platforms.unix; 36 }; 37 }