diff options
author | Tim Steinbach <NeQuissimus@users.noreply.github.com> | 2018-02-28 12:38:59 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-28 12:38:59 +0000 |
commit | 40adc86112af563f6fca1bef151098e6fd6566c8 (patch) | |
tree | 77ed7fb65311b62e247b743028501cbe15299a86 /pkgs/tools | |
parent | 749998f9e25750bc6f02b67cab6a900f5e9fc5e5 (diff) | |
parent | 97700fe81162818320585ba459d353622566e00a (diff) | |
download | nixpkgs-40adc86112af563f6fca1bef151098e6fd6566c8.tar nixpkgs-40adc86112af563f6fca1bef151098e6fd6566c8.tar.gz nixpkgs-40adc86112af563f6fca1bef151098e6fd6566c8.tar.bz2 nixpkgs-40adc86112af563f6fca1bef151098e6fd6566c8.tar.lz nixpkgs-40adc86112af563f6fca1bef151098e6fd6566c8.tar.xz nixpkgs-40adc86112af563f6fca1bef151098e6fd6566c8.tar.zst nixpkgs-40adc86112af563f6fca1bef151098e6fd6566c8.zip |
Merge pull request #34840 from Ma27/init-coreutils
uutils-coreutils: init at 2018-02-09
Diffstat (limited to 'pkgs/tools')
-rw-r--r-- | pkgs/tools/misc/uutils-coreutils/default.nix | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/pkgs/tools/misc/uutils-coreutils/default.nix b/pkgs/tools/misc/uutils-coreutils/default.nix new file mode 100644 index 00000000000..7f6e4f760b3 --- /dev/null +++ b/pkgs/tools/misc/uutils-coreutils/default.nix @@ -0,0 +1,39 @@ +{ stdenv, fetchFromGitHub, rustPlatform, cargo, cmake, sphinx, lib, prefix ? "uutils-" }: + +rustPlatform.buildRustPackage { + name = "uutils-coreutils-2018-02-09"; + src = fetchFromGitHub { + owner = "uutils"; + repo = "coreutils"; + rev = "f333ab26b03294a32a10c1c203a03c6b5cf8a89a"; + sha256 = "0nkggs5nqvc1mxzzgcsqm1ahchh4ll11xh0xqmcljrr5yg1rhhzf"; + }; + + # too many impure/platform-dependent tests + doCheck = false; + + cargoSha256 = "0qv2wz1bxhm5xhzbic7cqmn8jj8fyap0s18ylia4fbwpmv89nkc5"; + + makeFlags = + [ "CARGO=${cargo}/bin/cargo" "PREFIX=$(out)" "PROFILE=release" "INSTALLDIR_MAN=$(out)/share/man/man1" ] + ++ lib.optional (prefix != null) [ "PROG_PREFIX=${prefix}" ]; + + nativeBuildInputs = [ cmake ]; + buildInputs = [ cargo sphinx ]; + + # empty {build,install}Phase to use defaults of `stdenv.mkDerivation` rather than rust defaults + buildPhase = ""; + installPhase = ""; + + meta = with stdenv.lib; { + 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. + ''; + homepage = https://github.com/uutils/coreutils; + maintainers = with maintainers; [ ma27 ]; + license = licenses.mit; + platforms = platforms.unix; + }; +} |