10 , buildMulticallBinary ? true
13 stdenv.mkDerivation rec {
14 pname = "uutils-coreutils";
17 src = fetchFromGitHub {
21 hash = "sha256-6MbX3C5NVwiOwXW5xJO2X3qKMh3pUSALR9aK2IbgaaU=";
24 cargoDeps = rustPlatform.fetchCargoTarball {
26 name = "uutils-coreutils-${version}";
27 hash = "sha256-JowORfYHxN8GqvWeUm0ACnHNM3uZviYbhR7BOeAfphw=";
30 nativeBuildInputs = [ rustPlatform.cargoSetupHook sphinx ];
32 buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ Security libiconv ];
35 "CARGO=${cargo}/bin/cargo"
36 "PREFIX=${placeholder "out"}"
38 "INSTALLDIR_MAN=${placeholder "out"}/share/man/man1"
39 ] ++ lib.optionals (prefix != null) [ "PROG_PREFIX=${prefix}" ]
40 ++ lib.optionals buildMulticallBinary [ "MULTICALL=y" ];
42 # too many impure/platform-dependent tests
46 description = "Cross-platform Rust rewrite of the GNU coreutils";
48 uutils is an attempt at writing universal (as in cross-platform)
49 CLI utils in Rust. This repo is to aggregate the GNU coreutils rewrites.
51 homepage = "https://github.com/uutils/coreutils";
52 maintainers = with maintainers; [ siraben ];
53 license = licenses.mit;
54 platforms = platforms.unix;