commit 4f75596af6ce66e74cdbff81005a8ea1d4ead084
parent 9e6944cac8fdd82cb48b6ec3de82b064670f7ce9
Author: Nikolay Korotkiy <sikmir@disroot.org>
Date: Wed, 20 Nov 2024 20:53:39 +0400
Add taudem
Diffstat:
2 files changed, 40 insertions(+), 0 deletions(-)
diff --git a/pkgs/default.nix b/pkgs/default.nix
@@ -243,6 +243,7 @@ lib.makeScope newScope (
starlette-cramjam = callPackage ./geospatial/starlette-cramjam { };
supermercado = callPackage ./geospatial/supermercado { };
supermorecado = callPackage ./geospatial/supermorecado { };
+ taudem = callPackage ./geospatial/taudem { };
#tdh = callPackage ./geospatial/tdh { };
terracotta = callPackage ./geospatial/terracotta { };
tile-stitch = callPackage ./geospatial/tile-stitch { };
diff --git a/pkgs/geospatial/taudem/default.nix b/pkgs/geospatial/taudem/default.nix
@@ -0,0 +1,39 @@
+{
+ lib,
+ stdenv,
+ fetchFromGitHub,
+ cmake,
+ gdal,
+ mpich,
+}:
+
+stdenv.mkDerivation (finalAttrs: {
+ pname = "taudem";
+ version = "5.3.8";
+
+ src = fetchFromGitHub {
+ owner = "dtarb";
+ repo = "TauDEM";
+ rev = "v${finalAttrs.version}";
+ hash = "sha256-lomjPyNzm9K4jCs7fYwDYrG48qbeRedakWFwJj7pDEI=";
+ };
+
+ sourceRoot = "${finalAttrs.src.name}/src";
+
+ nativeBuildInputs = [ cmake ];
+
+ buildInputs = [
+ gdal
+ mpich
+ ];
+
+ env.NIX_CFLAGS_COMPILE = "-Wno-narrowing";
+
+ meta = {
+ description = "Terrain Analysis Using Digital Elevation Models";
+ homepage = "http://hydrology.usu.edu/taudem";
+ license = lib.licenses.gpl3;
+ maintainers = [ lib.maintainers.sikmir ];
+ platforms = lib.platforms.unix;
+ };
+})