Skip to content

Commit d3c9639

Browse files
committed
postgresqlPackages.postgis: nixfmt-rfc-style
1 parent 068c119 commit d3c9639

File tree

1 file changed

+53
-27
lines changed

1 file changed

+53
-27
lines changed

pkgs/servers/sql/postgresql/ext/postgis.nix

Lines changed: 53 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,26 @@
1-
{ fetchurl
2-
, lib, stdenv
3-
, perl
4-
, libxml2
5-
, postgresql
6-
, postgresqlTestHook
7-
, geos
8-
, proj
9-
, gdalMinimal
10-
, json_c
11-
, pkg-config
12-
, file
13-
, protobufc
14-
, libiconv
15-
, libxslt
16-
, docbook_xml_dtd_45
17-
, cunit
18-
, pcre2
19-
, nixosTests
20-
, jitSupport
21-
, llvm
1+
{
2+
fetchurl,
3+
lib,
4+
stdenv,
5+
perl,
6+
libxml2,
7+
postgresql,
8+
postgresqlTestHook,
9+
geos,
10+
proj,
11+
gdalMinimal,
12+
json_c,
13+
pkg-config,
14+
file,
15+
protobufc,
16+
libiconv,
17+
libxslt,
18+
docbook_xml_dtd_45,
19+
cunit,
20+
pcre2,
21+
nixosTests,
22+
jitSupport,
23+
llvm,
2224
}:
2325

2426
let
@@ -28,19 +30,37 @@ stdenv.mkDerivation rec {
2830
pname = "postgis";
2931
version = "3.4.2";
3032

31-
outputs = [ "out" "doc" ];
33+
outputs = [
34+
"out"
35+
"doc"
36+
];
3237

3338
src = fetchurl {
3439
url = "https://download.osgeo.org/postgis/source/postgis-${version}.tar.gz";
3540
sha256 = "sha256-yMh0wAukqYSocDCva/lUSCFQIGCtRz1clvHU0INcWJI=";
3641
};
3742

38-
buildInputs = [ libxml2 postgresql geos proj gdal json_c protobufc pcre2.dev ]
39-
++ lib.optional stdenv.isDarwin libiconv;
40-
nativeBuildInputs = [ perl pkg-config ] ++ lib.optional jitSupport llvm;
43+
buildInputs = [
44+
libxml2
45+
postgresql
46+
geos
47+
proj
48+
gdal
49+
json_c
50+
protobufc
51+
pcre2.dev
52+
] ++ lib.optional stdenv.isDarwin libiconv;
53+
nativeBuildInputs = [
54+
perl
55+
pkg-config
56+
] ++ lib.optional jitSupport llvm;
4157
dontDisableStatic = true;
4258

43-
nativeCheckInputs = [ postgresqlTestHook cunit libxslt ];
59+
nativeCheckInputs = [
60+
postgresqlTestHook
61+
cunit
62+
libxslt
63+
];
4464

4565
postgresqlTestUserOptions = "LOGIN SUPERUSER";
4666
failureHook = "postgresqlStop";
@@ -98,7 +118,13 @@ stdenv.mkDerivation rec {
98118
homepage = "https://postgis.net/";
99119
changelog = "https://git.osgeo.org/gitea/postgis/postgis/raw/tag/${version}/NEWS";
100120
license = licenses.gpl2Plus;
101-
maintainers = with maintainers; teams.geospatial.members ++ [ marcweber wolfgangwalther ];
121+
maintainers =
122+
with maintainers;
123+
teams.geospatial.members
124+
++ [
125+
marcweber
126+
wolfgangwalther
127+
];
102128
inherit (postgresql.meta) platforms;
103129
};
104130
}

0 commit comments

Comments
 (0)