From 68d36ee87be5cc178d428a3c84b0c2cf4d27d342 Mon Sep 17 00:00:00 2001 From: Nikolay Korotkiy Date: Mon, 5 Aug 2024 01:43:54 +0400 Subject: [PATCH] mapcache: format with nixfmt-rfc-style --- pkgs/by-name/ma/mapcache/package.nix | 38 +++++++++++++++++++++------- 1 file changed, 29 insertions(+), 9 deletions(-) diff --git a/pkgs/by-name/ma/mapcache/package.nix b/pkgs/by-name/ma/mapcache/package.nix index 640cd07985d7..e0859a91a2fe 100644 --- a/pkgs/by-name/ma/mapcache/package.nix +++ b/pkgs/by-name/ma/mapcache/package.nix @@ -1,6 +1,26 @@ -{ lib, stdenv, fetchFromGitHub, cmake, pkg-config -, apacheHttpd, apr, aprutil, curl, db, fcgi, gdal, geos -, libgeotiff, libjpeg, libpng, libtiff, pcre2, pixman, proj, sqlite, zlib +{ + lib, + stdenv, + fetchFromGitHub, + cmake, + pkg-config, + apacheHttpd, + apr, + aprutil, + curl, + db, + fcgi, + gdal, + geos, + libgeotiff, + libjpeg, + libpng, + libtiff, + pcre2, + pixman, + proj, + sqlite, + zlib, }: stdenv.mkDerivation rec { @@ -9,9 +29,9 @@ stdenv.mkDerivation rec { src = fetchFromGitHub { owner = "MapServer"; - repo = pname; + repo = "mapcache"; rev = "rel-${lib.replaceStrings [ "." ] [ "-" ] version}"; - sha256 = "sha256-AwdZdOEq9SZ5VzuBllg4U1gdVxZ9IVdqiDrn3QuRdCk="; + hash = "sha256-AwdZdOEq9SZ5VzuBllg4U1gdVxZ9IVdqiDrn3QuRdCk="; }; nativeBuildInputs = [ @@ -50,12 +70,12 @@ stdenv.mkDerivation rec { env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-std=c99"; - meta = with lib; { + meta = { description = "Server that implements tile caching to speed up access to WMS layers"; homepage = "https://mapserver.org/mapcache/"; changelog = "https://www.mapserver.org/development/changelog/mapcache/"; - license = licenses.mit; - maintainers = teams.geospatial.members; - platforms = platforms.unix; + license = lib.licenses.mit; + maintainers = lib.teams.geospatial.members; + platforms = lib.platforms.unix; }; }