mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-22 14:45:27 +00:00
uutils-coreutils: fix darwin build
https://hydra.nixos.org/build/108523395
This commit is contained in:
parent
1d2b233528
commit
51e91f0e8b
pkgs
|
@ -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 {
|
rustPlatform.buildRustPackage {
|
||||||
name = "uutils-coreutils-2019-05-03";
|
name = "uutils-coreutils-2019-05-03";
|
||||||
|
@ -19,13 +21,13 @@ rustPlatform.buildRustPackage {
|
||||||
++ lib.optional (prefix != null) [ "PROG_PREFIX=${prefix}" ];
|
++ lib.optional (prefix != null) [ "PROG_PREFIX=${prefix}" ];
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake ];
|
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
|
# empty {build,install}Phase to use defaults of `stdenv.mkDerivation` rather than rust defaults
|
||||||
buildPhase = "";
|
buildPhase = "";
|
||||||
installPhase = "";
|
installPhase = "";
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with lib; {
|
||||||
description = "Cross-platform Rust rewrite of the GNU coreutils";
|
description = "Cross-platform Rust rewrite of the GNU coreutils";
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
uutils is an attempt at writing universal (as in cross-platform)
|
uutils is an attempt at writing universal (as in cross-platform)
|
||||||
|
|
|
@ -2957,6 +2957,7 @@ in
|
||||||
|
|
||||||
uutils-coreutils = callPackage ../tools/misc/uutils-coreutils {
|
uutils-coreutils = callPackage ../tools/misc/uutils-coreutils {
|
||||||
inherit (pythonPackages) sphinx;
|
inherit (pythonPackages) sphinx;
|
||||||
|
inherit (darwin.apple_sdk.frameworks) Security;
|
||||||
};
|
};
|
||||||
|
|
||||||
volctl = callPackage ../tools/audio/volctl { };
|
volctl = callPackage ../tools/audio/volctl { };
|
||||||
|
|
Loading…
Reference in a new issue