Files
nixpkgs/pkgs/tools/misc/moreutils/default.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02: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 = with lib; {
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 maintainers; [
koral
pSub
];
platforms = platforms.all;
license = licenses.gpl2Plus;
};
}