Skip to content

Instantly share code, notes, and snippets.

@Ma27
Created August 23, 2017 18:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Ma27/4390346ededcb41ddd9347b620ec2490 to your computer and use it in GitHub Desktop.
Save Ma27/4390346ededcb41ddd9347b620ec2490 to your computer and use it in GitHub Desktop.
uutils-coreutils
{ stdenv, fetchFromGitHub, rustPlatform, cargo }:
rustPlatform.buildRustPackage {
name = "uutils-coreutils-2017-08-14";
src = fetchFromGitHub {
owner = "uutils";
repo = "coreutils";
# TODO use latest version, when upgraded to Rust 1.19.0
rev = "3d34d06a1ef2f4f25b0dcd132547c4ad1a0526b7";
sha256 = "0wk72p1q6b1wm1xzrwigdk7rvzjyx615rka9qmq9nns5i1cbpc8r";
};
depsSha256 = "1svdwm8g4gx6fh0vsvh71f8magvi4629vcyqd28w3nq93xiipnc6";
doCheck = false;
buildInputs = [ cargo ];
buildPhase = let
makeFlags = [ "CARGO=${cargo}/bin/cargo" "PREFIX=$(out)" "PROFILE=release" ];
in ''
make build ${builtins.concatStringsSep " " makeFlags}
'';
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;
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment