Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 33 lines 783 B view raw
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 directoryListingUpdater, 6}: 7 8stdenv.mkDerivation (finalAttrs: { 9 pname = "which"; 10 version = "2.23"; 11 12 src = fetchurl { 13 url = "mirror://gnu/which/which-${finalAttrs.version}.tar.gz"; 14 hash = "sha256-osVYIm/E2eTOMxvS/Tw/F/lVEV0sAORHYYpO+ZeKKnM="; 15 }; 16 17 strictDeps = true; 18 enableParallelBuilding = true; 19 20 passthru.updateScript = directoryListingUpdater { 21 inherit (finalAttrs) pname version; 22 url = "https://ftp.gnu.org/gnu/which/"; 23 }; 24 25 meta = { 26 homepage = "https://www.gnu.org/software/which/"; 27 description = "Shows the full path of (shell) commands"; 28 license = lib.licenses.gpl3Plus; 29 maintainers = with lib.maintainers; [ mdaniels5757 ]; 30 mainProgram = "which"; 31 platforms = lib.platforms.all; 32 }; 33})