uutils-coreutils: fix darwin build

https://hydra.nixos.org/build/108523395
This commit is contained in:
Maximilian Bosch 2019-12-29 23:45:09 +01:00
parent 1d2b233528
commit 51e91f0e8b
No known key found for this signature in database
GPG Key ID: 091DBF4D1FC46B8E
2 changed files with 6 additions and 3 deletions

View File

@ -1,4 +1,6 @@
{ stdenv, fetchFromGitHub, rustPlatform, cargo, cmake, sphinx, lib, prefix ? "uutils-" }:
{ stdenv, fetchFromGitHub, rustPlatform, cargo, cmake, sphinx, lib, prefix ? "uutils-"
, Security
}:
rustPlatform.buildRustPackage {
name = "uutils-coreutils-2019-05-03";
@ -19,13 +21,13 @@ rustPlatform.buildRustPackage {
++ lib.optional (prefix != null) [ "PROG_PREFIX=${prefix}" ];
nativeBuildInputs = [ cmake ];
buildInputs = [ cargo sphinx ];
buildInputs = [ cargo sphinx ] ++ lib.optional stdenv.isDarwin Security;
# empty {build,install}Phase to use defaults of `stdenv.mkDerivation` rather than rust defaults
buildPhase = "";
installPhase = "";
meta = with stdenv.lib; {
meta = with lib; {
description = "Cross-platform Rust rewrite of the GNU coreutils";
longDescription = ''
uutils is an attempt at writing universal (as in cross-platform)

View File

@ -2957,6 +2957,7 @@ in
uutils-coreutils = callPackage ../tools/misc/uutils-coreutils {
inherit (pythonPackages) sphinx;
inherit (darwin.apple_sdk.frameworks) Security;
};
volctl = callPackage ../tools/audio/volctl { };