Skip to content
This repository has been archived by the owner on Nov 27, 2024. It is now read-only.

Commit

Permalink
Merge pull request #517 from imincik/weekly-update-2024.33
Browse files Browse the repository at this point in the history
pkgs: weekly update (weekly-update-2024.33)
  • Loading branch information
imincik authored Aug 15, 2024
2 parents 97897d4 + d272530 commit 2b66624
Show file tree
Hide file tree
Showing 10 changed files with 149 additions and 49 deletions.
6 changes: 3 additions & 3 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@
plugin = value;

inherit grass;
python3-gdal = python-packages.python3.gdal;
};
}
)
Expand Down
4 changes: 2 additions & 2 deletions pkgs/gdal/master-rev.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
rev = "5bfc8cc";
hash = "sha256-5Y0lAVatPKH28Crye+KFV10c88xT5ml3XlrIcNpqENM=";
rev = "3527c3f";
hash = "sha256-nMh3KSaGKRzWQL39/Ab4Ohu5HPwSObxX3cr7K+8nDNU=";
}
6 changes: 6 additions & 0 deletions pkgs/grass/plugins-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -798,6 +798,12 @@
};


r-in-vect = {
name = "r.in.vect";
description = ''Converts an external vector layer to a raster layer using gdal.Rasterize (the vector layer will be reprojected first if its CRS is different from the current mapset), and imports this raster layer.'';
};


r-in-wcs = {
name = "r.in.wcs";
description = ''Downloads and imports coverage from WCS server.'';
Expand Down
4 changes: 2 additions & 2 deletions pkgs/grass/plugins-rev.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
rev = "3bc30b3";
hash = "sha256-xCFgmn0RbLgg0+HFd0CnSWWLiKDFSOJjcvD/lqVKRf4=";
rev = "d6fc6d5";
hash = "sha256-FkXgVuDZywY9IXYkjCg2A/WHfqVfnZrJ5HFiH47SUSY=";
}
3 changes: 3 additions & 0 deletions pkgs/grass/plugins.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
, pkg-config
, postgresql
, python3
, python3-gdal
}:

let
Expand Down Expand Up @@ -53,6 +54,7 @@ stdenv.mkDerivation {
# python
matplotlib
numpy
python3-gdal
six
];

Expand All @@ -64,6 +66,7 @@ stdenv.mkDerivation {
++ lib.optionals (name == "r-edm-eval") [ pandas ]
++ lib.optionals (name == "i-eodag") [ pytz ]
++ lib.optionals (name == "wx-metadata") [ wxpython ]
++ lib.optionals (name == "r-in-vect") [ python3-gdal ]

# non python
++ lib.optionals (name == "r-out-tiff") [ libtiff ]
Expand Down
91 changes: 67 additions & 24 deletions pkgs/postgis/postgis.nix
Original file line number Diff line number Diff line change
@@ -1,20 +1,26 @@
{ fetchurl
, lib, stdenv
, perl
, libxml2
, postgresql
, geos
, proj
, gdalMinimal
, json_c
, pkg-config
, file
, protobufc
, libiconv
, pcre2
, nixosTests
, jitSupport
, llvm
{
fetchurl,
lib,
stdenv,
perl,
libxml2,
postgresql,
postgresqlTestHook,
geos,
proj,
gdalMinimal,
json_c,
pkg-config,
file,
protobufc,
libiconv,
libxslt,
docbook_xml_dtd_45,
cunit,
pcre2,
nixosTests,
jitSupport,
llvm,
}:

let
Expand All @@ -24,22 +30,44 @@ stdenv.mkDerivation rec {
pname = "postgis";
version = "3.4.2";

outputs = [ "out" "doc" ];
outputs = [
"out"
"doc"
];

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

buildInputs = [ libxml2 postgresql geos proj gdal json_c protobufc pcre2.dev ]
++ lib.optional stdenv.isDarwin libiconv;
nativeBuildInputs = [ perl pkg-config ] ++ lib.optional jitSupport llvm;
buildInputs = [
libxml2
postgresql
geos
proj
gdal
json_c
protobufc
pcre2.dev
] ++ lib.optional stdenv.isDarwin libiconv;
nativeBuildInputs = [
perl
pkg-config
] ++ lib.optional jitSupport llvm;
dontDisableStatic = true;

nativeCheckInputs = [
postgresqlTestHook
cunit
libxslt
];

postgresqlTestUserOptions = "LOGIN SUPERUSER";
failureHook = "postgresqlStop";

# postgis config directory assumes /include /lib from the same root for json-c library
env.NIX_LDFLAGS = "-L${lib.getLib json_c}/lib";


preConfigure = ''
sed -i 's@/usr/bin/file@${file}/bin/file@' configure
configureFlags="--datadir=$out/share/postgresql --datarootdir=$out/share/postgresql --bindir=$out/bin --docdir=$doc/share/doc/${pname} --with-gdalconfig=${gdal}/bin/gdal-config --with-jsondir=${json_c.dev} --disable-extension-upgrades-install"
Expand All @@ -61,6 +89,15 @@ stdenv.mkDerivation rec {
ln -s ${postgresql}/bin/postgres $out/bin/postgres
'';

doCheck = stdenv.isLinux;

preCheck = ''
substituteInPlace regress/run_test.pl --replace-fail "/share/contrib/postgis" "$out/share/postgresql/contrib/postgis"
substituteInPlace regress/Makefile --replace-fail 's,\$$libdir,$(REGRESS_INSTALLDIR)/lib,g' "s,\\$\$libdir,$PWD/regress/00-regress-install$out/lib,g" \
--replace-fail '$(REGRESS_INSTALLDIR)/share/contrib/postgis/*.sql' "$PWD/regress/00-regress-install$out/share/postgresql/contrib/postgis/*.sql"
substituteInPlace doc/postgis-out.xml --replace-fail "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" "${docbook_xml_dtd_45}/xml/dtd/docbook/docbookx.dtd"
'';

# create aliases for all commands adding version information
postInstall = ''
# Teardown the illusory postgres used for building; see postConfigure.
Expand All @@ -81,7 +118,13 @@ stdenv.mkDerivation rec {
homepage = "https://postgis.net/";
changelog = "https://git.osgeo.org/gitea/postgis/postgis/raw/tag/${version}/NEWS";
license = licenses.gpl2Plus;
maintainers = with maintainers; teams.geospatial.members ++ [ marcweber wolfgangwalther ];
maintainers =
with maintainers;
teams.geospatial.members
++ [
marcweber
wolfgangwalther
];
inherit (postgresql.meta) platforms;
};
}
47 changes: 47 additions & 0 deletions pkgs/qgis/nixpkgs/unify-unwrapped.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
diff --git b/pkgs/qgis/ltr.nix a/pkgs/qgis/ltr.nix
index cc5f99d..67c1901 100644
--- b/pkgs/qgis/ltr.nix
+++ a/pkgs/qgis/ltr.nix
@@ -3,25 +3,25 @@
, symlinkJoin

, extraPythonPackages ? (ps: [ ])
-, qgis-ltr-unwrapped
+, qgis-unwrapped

, libsForQt5
}:

symlinkJoin rec {

- inherit (qgis-ltr-unwrapped) version src;
+ inherit (qgis-unwrapped) version src;
name = "qgis-${version}";

- paths = [ qgis-ltr-unwrapped ];
+ paths = [ qgis-unwrapped ];

nativeBuildInputs = [
makeWrapper
- qgis-ltr-unwrapped.py.pkgs.wrapPython
+ qgis-unwrapped.py.pkgs.wrapPython
];

# extend to add to the python environment of QGIS without rebuilding QGIS application.
- pythonInputs = qgis-ltr-unwrapped.pythonBuildInputs ++ (extraPythonPackages qgis-ltr-unwrapped.py.pkgs);
+ pythonInputs = qgis-unwrapped.pythonBuildInputs ++ (extraPythonPackages qgis-unwrapped.py.pkgs);

postBuild = ''
# unpackPhase
@@ -34,9 +34,9 @@ symlinkJoin rec {
'';

passthru = {
- unwrapped = qgis-ltr-unwrapped;
+ unwrapped = qgis-unwrapped;
tests.qgis-ltr = nixosTests.qgis-ltr;
};

- inherit (qgis-ltr-unwrapped) meta;
+ inherit (qgis-unwrapped) meta;
}
18 changes: 9 additions & 9 deletions pkgs/qgis/qgis-ltr-plugins-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,9 @@


NumericalDigitize = {
version = "0.4.7";
url = "https://plugins.qgis.org/plugins/numericalDigitize/version/0.4.7/download/";
hash = "sha256-3RUn+KDDbW3UeAqopLScGjRymkmAcJ0DTI6l8Rt0iEQ=";
version = "0.4.8";
url = "https://plugins.qgis.org/plugins/numericalDigitize/version/0.4.8/download/";
hash = "sha256-kfkgKuKKlKERN+4FUb9JRq+6h7KJT+EYBfcsOf5GDGQ=";
};


Expand Down Expand Up @@ -428,9 +428,9 @@


TUFLOW = {
version = "3.11.1";
url = "https://plugins.qgis.org/plugins/tuflow/version/3.11.1/download/";
hash = "sha256-MQP8sO4GxV7qB21TXWWagKTSEzoUFHcvEwqL72rSAII=";
version = "3.12";
url = "https://plugins.qgis.org/plugins/tuflow/version/3.12/download/";
hash = "sha256-ZHSGCYLJQCgokgYG6HB3zULYJmOZZKBgMkTS58wFiXE=";
};


Expand Down Expand Up @@ -477,9 +477,9 @@


QField-Sync = {
version = "v4.9.1";
url = "https://plugins.qgis.org/plugins/qfieldsync/version/v4.9.1/download/";
hash = "sha256-VrQD9IUA5xz6Q7kByAd9DN2Y2Y532OW9xMs2j+TW824=";
version = "v4.10.1";
url = "https://plugins.qgis.org/plugins/qfieldsync/version/v4.10.1/download/";
hash = "sha256-tZajHa14QBW51Rkm2nr9fJPDoaQ40LAC/iEhv9x/hgs=";
};


Expand Down
18 changes: 9 additions & 9 deletions pkgs/qgis/qgis-plugins-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,9 @@


NumericalDigitize = {
version = "0.4.7";
url = "https://plugins.qgis.org/plugins/numericalDigitize/version/0.4.7/download/";
hash = "sha256-3RUn+KDDbW3UeAqopLScGjRymkmAcJ0DTI6l8Rt0iEQ=";
version = "0.4.8";
url = "https://plugins.qgis.org/plugins/numericalDigitize/version/0.4.8/download/";
hash = "sha256-kfkgKuKKlKERN+4FUb9JRq+6h7KJT+EYBfcsOf5GDGQ=";
};


Expand Down Expand Up @@ -428,9 +428,9 @@


TUFLOW = {
version = "3.11.1";
url = "https://plugins.qgis.org/plugins/tuflow/version/3.11.1/download/";
hash = "sha256-MQP8sO4GxV7qB21TXWWagKTSEzoUFHcvEwqL72rSAII=";
version = "3.12";
url = "https://plugins.qgis.org/plugins/tuflow/version/3.12/download/";
hash = "sha256-ZHSGCYLJQCgokgYG6HB3zULYJmOZZKBgMkTS58wFiXE=";
};


Expand Down Expand Up @@ -477,9 +477,9 @@


QField-Sync = {
version = "v4.9.1";
url = "https://plugins.qgis.org/plugins/qfieldsync/version/v4.9.1/download/";
hash = "sha256-VrQD9IUA5xz6Q7kByAd9DN2Y2Y532OW9xMs2j+TW824=";
version = "v4.10.1";
url = "https://plugins.qgis.org/plugins/qfieldsync/version/v4.10.1/download/";
hash = "sha256-tZajHa14QBW51Rkm2nr9fJPDoaQ40LAC/iEhv9x/hgs=";
};


Expand Down

0 comments on commit 2b66624

Please sign in to comment.