postgis: 2.4.0 -> 2.4.3

This commit is contained in:
Robin Gloster 2018-03-05 16:45:02 +01:00
parent c7f40209c1
commit 49a0ecc49b
No known key found for this signature in database
GPG Key ID: D5C458DF6DD97EDF

View File

@ -1,4 +1,5 @@
{ fetchurl { fetchurl
, fetchpatch
, stdenv , stdenv
, perl , perl
, libxml2 , libxml2
@ -43,8 +44,8 @@
let let
version = "2.4.0"; version = "2.4.3";
sha256 = "02baa90f04da41e04b6c18eedfda53110c45ae943d4e65050f6d202f7de07d29"; sha256 = "1fg4pmla5m903m76ndjd8q5dkcykf67v1p4dcajmnr3bvg2p8lza";
in stdenv.mkDerivation rec { in stdenv.mkDerivation rec {
name = "postgis-${version}"; name = "postgis-${version}";
@ -53,9 +54,24 @@ in stdenv.mkDerivation rec {
inherit sha256; inherit sha256;
}; };
patches = [
(fetchpatch {
url = "https://trac.osgeo.org/postgis/changeset/16417?format=diff&new=16417";
name = "json-c-0.13.patch";
sha256 = "1hk2fh4nsvq76ksi7z4shlgj7fik6ac3sjsb0khsypsjfhz7ic8z";
stripLen = 3;
extraPrefix = "";
excludes = [ "NEWS" ];
})
];
# don't pass these vars to the builder # don't pass these vars to the builder
removeAttrs = ["sql_comments" "sql_srcs"]; removeAttrs = ["sql_comments" "sql_srcs"];
preInstall = ''
mkdir -p $out/bin
'';
# create aliases for all commands adding version information # create aliases for all commands adding version information
postInstall = '' postInstall = ''
sql_srcs=$(for sql in ${builtins.toString sql_srcs}; do echo -n "$(find $out -iname "$sql") "; done ) sql_srcs=$(for sql in ${builtins.toString sql_srcs}; do echo -n "$(find $out -iname "$sql") "; done )