New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
uutils-coreutils: init at 2018-02-09 #34840
Conversation
|
[ "CARGO=${cargo}/bin/cargo" "PREFIX=$(out)" "PROFILE=release" "INSTALLDIR_MAN=$(out)/share/man/man1" ] | ||
++ lib.optional (prefix != null) [ "PROG_PREFIX=${prefix}" ]; | ||
|
||
buildInputs = [ cargo cmake sphinx ]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cmake
should be a native build input
@@ -0,0 +1,38 @@ | |||
{ stdenv, fetchFromGitHub, rustPlatform, cargo, cmake, sphinx, gzip, lib, prefix ? "uutils-" }: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
gzip
is not needed
`uutils-coreutils` is an a cross-platform rewrite of GNU/coreutils based on Rust. It aims to increase portability and improve Windows support (see https://github.com/uutils/coreutils#why). Since the derivation provides the same binaries as `coreutils` does a `prefix` argument as been added to the function to avoid any conflicts that can be used like this: ``` nix self: super: { uutils-coreutils = self.uutils-coreutils.override { prefix = "uutils"; }; } ``` Resolves NixOS#28114 /cc @NeQuissimus ----- Important notice: the patch depends on NixOS#34505 which needs to be merged *FIRST* as it fixes a bug in the `rustc` setup of nixpkgs (see the PR's discussion and rust-lang/cargo@5c9665f#commitcomment-27271420 for further reference).
@NeQuissimus I rebased this onto the latest master so we might be able to merge this :) |
@GrahamcOfBorg build uutils-coreutils |
Failure on x86_64-darwin (full log) Partial log (click to expand)
|
Success on x86_64-linux (full log) Partial log (click to expand)
|
awkward, the install script fails on OS X. However I can't reproduce this as I'm not an Mac user.... |
Success on aarch64-linux (full log) Partial log (click to expand)
|
The package set `nixpkgs`, NixOS relies on provides `uutils-coreutils` out of the box since 18.03/unstable. See NixOS/nixpkgs#34840
Currently the installation on Darwin fails due to a bug in the installation script: NixOS#34840 (comment) As I lack knowledge and resources to properly test this package against Darwin I'll disallow Darwin builds for now.
Motivation for this change
uutils-coreutils
is an a cross-platform rewrite of GNU/coreutils basedon Rust. It aims to increase portability and improve Windows support
(see https://github.com/uutils/coreutils#why).
Since the derivation provides the same binaries as
coreutils
does aprefix
argument as been added to the function to avoid any conflictsthat can be used like this:
Resolves #28114 /cc @NeQuissimus
Important notice: the patch depends on #34505 which needs to be merged
FIRST as it fixes a bug in the
rustc
setup of nixpkgs (see the PR'sdiscussion and rust-lang/cargo@5c9665f#commitcomment-27271420 for further reference).
Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)