Files
Ihar HrachyshkaandWolfgang Walther 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

42 lines
794 B
Nix

{
lib,
stdenvNoCC,
fetchFromGitHub,
bash,
scdoc,
}:
stdenvNoCC.mkDerivation {
pname = "fetchutils";
version = "unstable-2021-03-16";
src = fetchFromGitHub {
owner = "kiedtl";
repo = "fetchutils";
rev = "882781a297e86f4ad4eaf143e0777fb3e7c69526";
sha256 = "sha256-ONrVZC6GBV5v3TeBekW9ybZjDHF3FNyXw1rYknqKRbk=";
};
nativeBuildInputs = [
scdoc
];
buildInputs = [
bash
];
installFlags = [ "PREFIX=$(out)/" ];
postPatch = ''
patchShebangs --host src/*
'';
meta = {
description = "Collection of small shell utilities to fetch system information";
homepage = "https://github.com/lptstr/fetchutils";
license = lib.licenses.mit;
platforms = lib.platforms.unix;
maintainers = with lib.maintainers; [ moni ];
};
}