11 buildMulticallBinary ? true,
14 stdenv.mkDerivation rec {
15 pname = "uutils-coreutils";
18 src = fetchFromGitHub {
21 rev = "refs/tags/${version}";
22 hash = "sha256-Gwks+xTkwK5dgV9AkSthIrhBNwq/WvM9SNr0wR/SBSM=";
25 cargoDeps = rustPlatform.fetchCargoTarball {
27 name = "uutils-coreutils-${version}";
28 hash = "sha256-i7RvsgtmkH8og8lkRQURWLrzrhPkxans+KME2Ili0wM=";
32 rustPlatform.cargoSetupHook
36 buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
43 "CARGO=${cargo}/bin/cargo"
44 "PREFIX=${placeholder "out"}"
46 "INSTALLDIR_MAN=${placeholder "out"}/share/man/man1"
48 ++ lib.optionals (prefix != null) [ "PROG_PREFIX=${prefix}" ]
49 ++ lib.optionals buildMulticallBinary [ "MULTICALL=y" ];
51 # too many impure/platform-dependent tests
55 description = "Cross-platform Rust rewrite of the GNU coreutils";
57 uutils is an attempt at writing universal (as in cross-platform)
58 CLI utils in Rust. This repo is to aggregate the GNU coreutils rewrites.
60 homepage = "https://github.com/uutils/coreutils";
61 maintainers = with lib.maintainers; [ siraben ];
62 license = lib.licenses.mit;
63 platforms = lib.platforms.unix;