which: add mdaniels5757 as maintainer, set updateScript, use finalAttrs (#416757)

This commit is contained in:
Pol Dellaiera
2025-06-14 22:21:45 +02:00
committed by GitHub
2 changed files with 16 additions and 3 deletions

View File

@@ -15892,6 +15892,12 @@
githubId = 1377571;
name = "Matthew S. Daiter";
};
mdaniels5757 = {
email = "nix@mdaniels.me";
github = "mdaniels5757";
githubId = 8762511;
name = "Michael Daniels";
};
mdarocha = {
email = "marek@mdarocha.pl";
github = "mdarocha";

View File

@@ -2,25 +2,32 @@
lib,
stdenv,
fetchurl,
directoryListingUpdater,
}:
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "which";
version = "2.23";
src = fetchurl {
url = "mirror://gnu/which/which-${version}.tar.gz";
url = "mirror://gnu/which/which-${finalAttrs.version}.tar.gz";
hash = "sha256-osVYIm/E2eTOMxvS/Tw/F/lVEV0sAORHYYpO+ZeKKnM=";
};
strictDeps = true;
enableParallelBuilding = true;
passthru.updateScript = directoryListingUpdater {
inherit (finalAttrs) pname version;
url = "https://ftp.gnu.org/gnu/which/";
};
meta = {
homepage = "https://www.gnu.org/software/which/";
description = "Shows the full path of (shell) commands";
license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [ mdaniels5757 ];
mainProgram = "which";
platforms = lib.platforms.all;
};
}
})