From 4fdaae34eb6b67b75347dee343974d58b0e0546d Mon Sep 17 00:00:00 2001 From: John Titor <50095635+JohnRTitor@users.noreply.github.com> Date: Mon, 3 Jun 2024 18:07:22 +0530 Subject: [PATCH 1/2] whitebox_tools: 2.2.0 -> 2.4.0 add missing dependencies add nix-update-script --- .../gis/whitebox-tools/default.nix | 27 ++++++++++++++++--- 1 file changed, 23 insertions(+), 4 deletions(-) diff --git a/pkgs/applications/gis/whitebox-tools/default.nix b/pkgs/applications/gis/whitebox-tools/default.nix index b8ccd554f7715..3dacb95ab7df5 100644 --- a/pkgs/applications/gis/whitebox-tools/default.nix +++ b/pkgs/applications/gis/whitebox-tools/default.nix @@ -1,27 +1,46 @@ { lib , stdenv +, cmake , rustPlatform +, pkg-config , fetchFromGitHub +, atk +, gtk3 +, glib +, openssl , Security +, nix-update-script }: rustPlatform.buildRustPackage rec { pname = "whitebox_tools"; - version = "2.2.0"; + version = "2.4.0"; src = fetchFromGitHub { owner = "jblindsay"; repo = "whitebox-tools"; rev = "v${version}"; - hash = "sha256-DQ7BPRd90GNQVfD5NoVcxoyd2L3WZvIkecmRJVUY1R4="; + hash = "sha256-kvtfEEydwonoDux1VbAxqrF/Hf8Qh8mhprYnROGOC6g="; }; - cargoHash = "sha256-BounjGGhbU5dxNV8WjVDQtV7YONNVRldc/t+wet1Gh8="; + cargoHash = "sha256-6v/3b6BHh/n7M2ZhLVKRvv0Va2xbLUSsxUb5paOStbQ="; - buildInputs = lib.optional stdenv.isDarwin Security; + buildInputs = [ + atk + glib + gtk3 + openssl + ] ++ lib.optional stdenv.isDarwin Security; + + nativeBuildInputs = [ + cmake + pkg-config + ]; doCheck = false; + passthru.updateScript = nix-update-script {}; + meta = with lib; { homepage = "https://jblindsay.github.io/ghrg/WhiteboxTools/index.html"; description = "An advanced geospatial data analysis platform"; From eb17962e97eaf13c322b4d1bd2773ba061de6b98 Mon Sep 17 00:00:00 2001 From: John Titor <50095635+JohnRTitor@users.noreply.github.com> Date: Mon, 3 Jun 2024 18:18:09 +0530 Subject: [PATCH 2/2] whitebox-tools: cleanup apply nixfmt-rfc-style --- .../gis/whitebox-tools/default.nix | 33 ++++++++++--------- 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/pkgs/applications/gis/whitebox-tools/default.nix b/pkgs/applications/gis/whitebox-tools/default.nix index 3dacb95ab7df5..ecb89d2e995a6 100644 --- a/pkgs/applications/gis/whitebox-tools/default.nix +++ b/pkgs/applications/gis/whitebox-tools/default.nix @@ -1,15 +1,16 @@ -{ lib -, stdenv -, cmake -, rustPlatform -, pkg-config -, fetchFromGitHub -, atk -, gtk3 -, glib -, openssl -, Security -, nix-update-script +{ + lib, + stdenv, + cmake, + rustPlatform, + pkg-config, + fetchFromGitHub, + atk, + gtk3, + glib, + openssl, + Security, + nix-update-script, }: rustPlatform.buildRustPackage rec { @@ -39,12 +40,12 @@ rustPlatform.buildRustPackage rec { doCheck = false; - passthru.updateScript = nix-update-script {}; + passthru.updateScript = nix-update-script { }; - meta = with lib; { + meta = { homepage = "https://jblindsay.github.io/ghrg/WhiteboxTools/index.html"; description = "An advanced geospatial data analysis platform"; - license = licenses.mit; - maintainers = [ maintainers.mpickering ]; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ mpickering ]; }; }