2022-06-26 10:26:21 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchgit
|
|
|
|
, libxml2
|
|
|
|
, libxslt
|
|
|
|
, docbook-xsl
|
|
|
|
, docbook_xml_dtd_44
|
|
|
|
, perlPackages
|
|
|
|
, makeWrapper
|
|
|
|
, perl # for pod2man
|
|
|
|
, darwin
|
2024-01-02 11:29:13 +00:00
|
|
|
, gitUpdater
|
2022-06-26 10:26:21 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "moreutils";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "0.69";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "git://git.joeyh.name/moreutils";
|
|
|
|
rev = "refs/tags/${version}";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-hVvRAIXlG8+pAD2v/Ma9Z6EUL/1xIRz7Gx1fOxoQyi0=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-06-26 10:26:21 +00:00
|
|
|
strictDeps = true;
|
|
|
|
nativeBuildInputs = [ makeWrapper perl libxml2 libxslt docbook-xsl docbook_xml_dtd_44 ];
|
2024-07-27 06:49:29 +00:00
|
|
|
buildInputs = [
|
|
|
|
(perl.withPackages (p: [ p.IPCRun p.TimeDate p.TimeDuration ]))
|
|
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
|
|
darwin.cctools
|
|
|
|
];
|
|
|
|
|
|
|
|
makeFlags = [
|
|
|
|
"CC=${stdenv.cc.targetPrefix}cc"
|
|
|
|
"DOCBOOKXSL=${docbook-xsl}/xml/xsl/docbook"
|
|
|
|
"INSTALL_BIN=install"
|
|
|
|
"PREFIX=${placeholder "out"}"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
passthru.updateScript = gitUpdater {
|
|
|
|
# No nicer place to find latest release.
|
|
|
|
url = "git://git.joeyh.name/moreutils";
|
|
|
|
};
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|