fac-build: fix darwin build

This commit is contained in:
Ben Siraphob 2022-03-29 00:38:38 -05:00
parent f5054121cb
commit 9ec6f8fc9b
No known key found for this signature in database
GPG key ID: 45F0E5D788143267
2 changed files with 7 additions and 3 deletions

View file

@ -1,4 +1,4 @@
{ lib, rustPlatform, fetchCrate, git }:
{ lib, stdenv, rustPlatform, fetchCrate, git, CoreServices }:
rustPlatform.buildRustPackage rec {
pname = "fac-build";
@ -10,6 +10,8 @@ rustPlatform.buildRustPackage rec {
sha256 = "sha256-+JJVuKUdnjJoQJ4a2EE0O6jZdVoFxPwbPgfD2LfiDPI=";
};
buildInputs = lib.optionals stdenv.isDarwin [ CoreServices ];
cargoSha256 = "sha256-XT4FQVE+buORuZAFZK5Qnf/Fl3QSvw4SHUuCzWhxUdk=";
# fac includes a unit test called ls_files_works which assumes it's
@ -40,7 +42,7 @@ rustPlatform.buildRustPackage rec {
'';
homepage = "https://physics.oregonstate.edu/~roundyd/fac";
license = licenses.gpl2Plus;
platforms = platforms.linux;
platforms = platforms.unix;
maintainers = with maintainers; [ dpercy ];
mainProgram = "fac";
};

View file

@ -34999,7 +34999,9 @@ with pkgs;
unifi-poller = callPackage ../servers/monitoring/unifi-poller {};
fac-build = callPackage ../development/tools/build-managers/fac {};
fac-build = callPackage ../development/tools/build-managers/fac {
inherit (darwin.apple_sdk.frameworks) CoreServices;
};
treefmt = callPackage ../development/tools/treefmt { };