pkgs/servers: stdenv.lib -> lib

This commit is contained in:
Ben Siraphob
2021-01-15 14:07:56 +07:00
parent e245ae3c3a
commit 872973d7d1
172 changed files with 454 additions and 455 deletions

View File

@@ -25,7 +25,7 @@ stdenv.mkDerivation {
operators (= and <>) you can use ~~~ and ~!~ (any of these operators represents a similarity function).
'';
platforms = postgresql.meta.platforms;
license = stdenv.lib.licenses.gpl2;
license = lib.licenses.gpl2;
maintainers = with lib.maintainers; [ danbst ];
};
}

View File

@@ -25,12 +25,12 @@ stdenv.mkDerivation rec {
};
buildInputs = [ libxml2 postgresql geos proj gdal json_c protobufc ]
++ stdenv.lib.optional stdenv.isDarwin libiconv;
++ lib.optional stdenv.isDarwin libiconv;
nativeBuildInputs = [ perl pkgconfig ];
dontDisableStatic = true;
# postgis config directory assumes /include /lib from the same root for json-c library
NIX_LDFLAGS = "-L${stdenv.lib.getLib json_c}/lib";
NIX_LDFLAGS = "-L${lib.getLib json_c}/lib";
preConfigure = ''
sed -i 's@/usr/bin/file@${file}/bin/file@' configure