Files
nixpkgs/pkgs/tools/misc/moreutils/default.nix
T
Ihar Hrachyshka 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

69 lines
1.3 KiB
Nix

{
lib,
stdenv,
fetchgit,
libxml2,
libxslt,
docbook-xsl,
docbook_xml_dtd_44,
perlPackages,
makeWrapper,
perl, # for pod2man
cctools,
gitUpdater,
}:
stdenv.mkDerivation rec {
pname = "moreutils";
version = "0.70";
src = fetchgit {
url = "git://git.joeyh.name/moreutils";
tag = version;
hash = "sha256-71ACHzzk258U4q2L7GJ59mrMZG99M7nQkcH4gHafGP0=";
};
strictDeps = true;
nativeBuildInputs = [
makeWrapper
perl
libxml2
libxslt
docbook-xsl
docbook_xml_dtd_44
];
buildInputs = [
(perl.withPackages (p: [
p.IPCRun
p.TimeDate
p.TimeDuration
]))
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
cctools
];
makeFlags = [
"CC=${stdenv.cc.targetPrefix}cc"
"DOCBOOKXSL=${docbook-xsl}/xml/xsl/docbook"
"INSTALL_BIN=install"
"PREFIX=${placeholder "out"}"
];
passthru.updateScript = gitUpdater {
# No nicer place to find latest release.
url = "git://git.joeyh.name/moreutils";
};
meta = {
description = "Growing collection of the unix tools that nobody thought to write long ago when unix was young";
homepage = "https://joeyh.name/code/moreutils/";
maintainers = with lib.maintainers; [
koral
pSub
];
platforms = lib.platforms.all;
license = lib.licenses.gpl2Plus;
};
}