2019-12-29 23:45:09 +01:00
|
|
|
{ stdenv, fetchFromGitHub, rustPlatform, cargo, cmake, sphinx, lib, prefix ? "uutils-"
|
|
|
|
, Security
|
|
|
|
}:
|
2018-02-11 12:37:48 +01:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage {
|
2019-05-11 11:29:23 +02:00
|
|
|
name = "uutils-coreutils-2019-05-03";
|
2018-02-11 12:37:48 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "uutils";
|
|
|
|
repo = "coreutils";
|
2019-05-11 11:29:23 +02:00
|
|
|
rev = "036dd812958ace22d973acf7b370f58072049dac";
|
|
|
|
sha256 = "0d9w3iiphhsk7l5l34682wayp90rgq5a3d94l3qdvhcqkfmpg727";
|
2018-02-11 12:37:48 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
# too many impure/platform-dependent tests
|
|
|
|
doCheck = false;
|
|
|
|
|
2020-02-28 06:20:46 +01:00
|
|
|
cargoSha256 = "186hwzdpy7j0gw7491qx02vy4di5md47hipf1xxi1qccvmcfghwh";
|
2018-02-11 12:37:48 +01:00
|
|
|
|
|
|
|
makeFlags =
|
|
|
|
[ "CARGO=${cargo}/bin/cargo" "PREFIX=$(out)" "PROFILE=release" "INSTALLDIR_MAN=$(out)/share/man/man1" ]
|
|
|
|
++ lib.optional (prefix != null) [ "PROG_PREFIX=${prefix}" ];
|
|
|
|
|
2020-03-29 10:07:29 +02:00
|
|
|
nativeBuildInputs = [ cmake cargo sphinx ];
|
|
|
|
buildInputs = lib.optional stdenv.isDarwin Security;
|
2018-02-11 12:37:48 +01:00
|
|
|
|
|
|
|
# empty {build,install}Phase to use defaults of `stdenv.mkDerivation` rather than rust defaults
|
|
|
|
buildPhase = "";
|
|
|
|
installPhase = "";
|
|
|
|
|
2019-12-29 23:45:09 +01:00
|
|
|
meta = with lib; {
|
2018-02-11 12:37:48 +01:00
|
|
|
description = "Cross-platform Rust rewrite of the GNU coreutils";
|
|
|
|
longDescription = ''
|
|
|
|
uutils is an attempt at writing universal (as in cross-platform)
|
|
|
|
CLI utils in Rust. This repo is to aggregate the GNU coreutils rewrites.
|
|
|
|
'';
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/uutils/coreutils";
|
2019-12-26 15:13:48 +01:00
|
|
|
maintainers = with maintainers; [ ];
|
2018-02-11 12:37:48 +01:00
|
|
|
license = licenses.mit;
|
2018-10-05 09:50:19 +02:00
|
|
|
platforms = platforms.unix;
|
2018-02-11 12:37:48 +01:00
|
|
|
};
|
|
|
|
}
|