pueue: fix build on darwin

Fixes #116175
This commit is contained in:
Mario Rodas 2021-03-13 11:44:00 +00:00
parent 3700bb62e5
commit 22eb13d3ed
2 changed files with 7 additions and 2 deletions

View File

@ -1,4 +1,4 @@
{ lib, rustPlatform, fetchFromGitHub, installShellFiles }: { stdenv, lib, rustPlatform, fetchFromGitHub, installShellFiles, SystemConfiguration, libiconv }:
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "pueue"; pname = "pueue";
@ -15,6 +15,8 @@ rustPlatform.buildRustPackage rec {
nativeBuildInputs = [ installShellFiles ]; nativeBuildInputs = [ installShellFiles ];
buildInputs = lib.optionals stdenv.isDarwin [ SystemConfiguration libiconv ];
checkFlags = [ "--skip=test_single_huge_payload" "--skip=test_create_unix_socket" ]; checkFlags = [ "--skip=test_single_huge_payload" "--skip=test_create_unix_socket" ];
postInstall = '' postInstall = ''
@ -27,6 +29,7 @@ rustPlatform.buildRustPackage rec {
meta = with lib; { meta = with lib; {
description = "A daemon for managing long running shell commands"; description = "A daemon for managing long running shell commands";
homepage = "https://github.com/Nukesor/pueue"; homepage = "https://github.com/Nukesor/pueue";
changelog = "https://github.com/Nukesor/pueue/raw/v${version}/CHANGELOG.md";
license = licenses.mit; license = licenses.mit;
maintainers = [ maintainers.marsam ]; maintainers = [ maintainers.marsam ];
}; };

View File

@ -2780,7 +2780,9 @@ in
precice = callPackage ../development/libraries/precice { }; precice = callPackage ../development/libraries/precice { };
pueue = callPackage ../applications/misc/pueue { }; pueue = callPackage ../applications/misc/pueue {
inherit (darwin.apple_sdk.frameworks) SystemConfiguration;
};
pixiecore = callPackage ../tools/networking/pixiecore {}; pixiecore = callPackage ../tools/networking/pixiecore {};