commit 074120d721911e84586350b81a911c97b2ff4f86
parent ff4be446b7c9b1cd43d0feaf50b050b4979db2a6
Author: Nikolay Korotkiy <sikmir@disroot.org>
Date: Sat, 9 Aug 2025 16:21:16 +0400
Up
Diffstat:
1 file changed, 12 insertions(+), 10 deletions(-)
diff --git a/pkgs/osm/smrender/default.nix b/pkgs/osm/smrender/default.nix
@@ -2,7 +2,6 @@
lib,
stdenv,
fetchFromGitHub,
- fetchpatch,
autoreconfHook,
makeWrapper,
pkg-config,
@@ -13,22 +12,15 @@
stdenv.mkDerivation (finalAttrs: {
pname = "smrender";
- version = "4.4.2";
+ version = "4.5.0";
src = fetchFromGitHub {
owner = "rahra";
repo = "smrender";
tag = "v${finalAttrs.version}";
- hash = "sha256-u+zZUqWWFn1AjuiYGhh8ZfRSI/4GS9ThVH1KHtbROE8=";
+ hash = "sha256-iQSOYiRf4A6HqNmW4oWXIsGIaSHuSvE9wuIiE7JUI8w=";
};
- patches = [
- (fetchpatch {
- url = "https://github.com/rahra/smrender/commit/367fe9a14ce3f683a61de79b24f5025ab7f19253.patch";
- hash = "sha256-Bn02ayB4qo3BXbF8hLa0NvGXcMAs1mZWgt6JsdVFAKE=";
- })
- ];
-
nativeBuildInputs = [
autoreconfHook
makeWrapper
@@ -40,6 +32,16 @@ stdenv.mkDerivation (finalAttrs: {
librsvg
];
+ configureFlags = [
+ (lib.enableFeature true "threads")
+ (lib.withFeature true "cairo")
+ (lib.withFeature true "fontconfig")
+ (lib.withFeature true "libjpeg")
+ (lib.withFeature true "librsvg")
+ ];
+
+ enableParallelBuilding = true;
+
postInstall = ''
wrapProgram $out/bin/smrender \
--prefix DYLD_LIBRARY_PATH : $out/lib/smrender \