summary refs log tree commit diff
path: root/pkgs/tools/misc/routino/default.nix
diff options
context:
space:
mode:
authorNikolay Korotkiy <sikmir@gmail.com>2021-05-07 13:45:29 +0300
committerGitHub <noreply@github.com>2021-05-07 12:45:29 +0200
commitedb9e32ff1efc186d5709339b1946ee29803b86d (patch)
tree6067f44508d49241ce5d5910e7d60ed7a3483353 /pkgs/tools/misc/routino/default.nix
parentdfcfe50920c81302be069533514a16d4a48c6715 (diff)
downloadnixpkgs-edb9e32ff1efc186d5709339b1946ee29803b86d.tar
nixpkgs-edb9e32ff1efc186d5709339b1946ee29803b86d.tar.gz
nixpkgs-edb9e32ff1efc186d5709339b1946ee29803b86d.tar.bz2
nixpkgs-edb9e32ff1efc186d5709339b1946ee29803b86d.tar.lz
nixpkgs-edb9e32ff1efc186d5709339b1946ee29803b86d.tar.xz
nixpkgs-edb9e32ff1efc186d5709339b1946ee29803b86d.tar.zst
nixpkgs-edb9e32ff1efc186d5709339b1946ee29803b86d.zip
routino: fix on darwin (#121959)
Diffstat (limited to 'pkgs/tools/misc/routino/default.nix')
-rw-r--r--pkgs/tools/misc/routino/default.nix7
1 files changed, 6 insertions, 1 deletions
diff --git a/pkgs/tools/misc/routino/default.nix b/pkgs/tools/misc/routino/default.nix
index 0205209d491..5f2a8852e31 100644
--- a/pkgs/tools/misc/routino/default.nix
+++ b/pkgs/tools/misc/routino/default.nix
@@ -21,6 +21,11 @@ stdenv.mkDerivation rec {
     })
   ];
 
+  postPatch = lib.optionalString stdenv.isDarwin ''
+    substituteInPlace Makefile.conf \
+      --subst-var-by PREFIX $out
+  '';
+
   nativeBuildInputs = [ perl ];
 
   buildInputs = [ zlib bzip2 ];
@@ -34,7 +39,7 @@ stdenv.mkDerivation rec {
   meta = with lib; {
     homepage = "http://www.routino.org/";
     description = "OpenStreetMap Routing Software";
-    license = licenses.agpl3;
+    license = licenses.agpl3Plus;
     maintainers = with maintainers; [ dotlambda ];
     platforms = with platforms; linux ++ darwin;
   };