nur-packages

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

commit 0991ad8e722f80ea028cffc3d62ba29fbf0a45b4
parent 7cb4e9d3314d3749bca6752dcdc6810123f7a7f8
Author: Nikolay Korotkiy <sikmir@gmail.com>
Date:   Sun, 19 Jul 2020 21:23:05 +0300

gpx-layer: fix on darwin

Diffstat:
Mpkgs/tools/geo/gpx-layer/default.nix | 17++++++++++-------
1 file changed, 10 insertions(+), 7 deletions(-)

diff --git a/pkgs/tools/geo/gpx-layer/default.nix b/pkgs/tools/geo/gpx-layer/default.nix @@ -1,7 +1,7 @@ -{ lib, buildPerlPackage, XMLParser, sources }: +{ stdenv, buildPerlPackage, shortenPerlShebang, XMLParser, sources }: let pname = "gpx-layer"; - date = lib.substring 0 10 sources.gpx-layer.date; + date = stdenv.lib.substring 0 10 sources.gpx-layer.date; version = "unstable-" + date; in buildPerlPackage { @@ -10,18 +10,21 @@ buildPerlPackage { outputs = [ "out" ]; + nativeBuildInputs = stdenv.lib.optional stdenv.isDarwin shortenPerlShebang; + propagatedBuildInputs = [ XMLParser ]; - preConfigure = '' - patchShebangs . - touch Makefile.PL - ''; + preConfigure = "touch Makefile.PL"; installPhase = '' install -Dm755 parse-gpx $out/bin/datamaps-parse-gpx + '' + stdenv.lib.optionalString stdenv.isLinux '' + patchShebangs $out/bin/datamaps-parse-gpx + '' + stdenv.lib.optionalString stdenv.isDarwin '' + shortenPerlShebang $out/bin/datamaps-parse-gpx ''; - meta = with lib; { + meta = with stdenv.lib; { inherit (sources.gpx-layer) description homepage; license = licenses.free; maintainers = with maintainers; [ sikmir ];