commit d59f74ac3b7a17cc7059b37275c77ff05f386f24
parent 40bbfba45b7b76976516beda222b84d66d72e04a
Author: Nikolay Korotkiy <sikmir@gmail.com>
Date: Thu, 3 Jun 2021 03:48:45 +0300
Add smrender
Diffstat:
2 files changed, 29 insertions(+), 0 deletions(-)
diff --git a/pkgs/default.nix b/pkgs/default.nix
@@ -261,6 +261,7 @@ lib.makeScope newScope (
osmcoastline = callPackage ./osm/osmcoastline { };
phyghtmap = callPackage ./osm/phyghtmap { };
sdlmap = callPackage ./osm/sdlmap { };
+ smrender = callPackage ./osm/smrender { };
taginfo-tools = callPackage ./osm/taginfo-tools { };
### SUCKLESS
diff --git a/pkgs/osm/smrender/default.nix b/pkgs/osm/smrender/default.nix
@@ -0,0 +1,28 @@
+{ lib, stdenv, fetchFromGitHub, autoreconfHook269, pkg-config, cairo, librsvg }:
+
+stdenv.mkDerivation rec {
+ pname = "smrender";
+ version = "2021-03-15";
+
+ src = fetchFromGitHub {
+ owner = "rahra";
+ repo = pname;
+ rev = "3c146d1dcf28d59866598a3de924dcb8b119e6df";
+ hash = "sha256-tgUoSrsZWAPDPnujiB69dgSdZtPUoO9VuMgwlDfEeN0=";
+ };
+
+ postPatch = ''
+ substituteInPlace configure.ac \
+ --replace "git log --oneline | wc -l" "echo 470"
+ '';
+
+ nativeBuildInputs = [ autoreconfHook269 pkg-config ];
+
+ buildInputs = [ cairo librsvg ];
+
+ meta = with lib; {
+ description = "A powerful, flexible, and modular rule-based rendering engine for OSM data";
+ inherit (src.meta) homepage;
+ platforms = platforms.linux;
+ };
+}