Merge pull request #269892 from sveitser/zhf-rustic-darwin-fix-build

rustic-rs: fix build on darwin
This commit is contained in:
Nikolay Korotkiy 2023-11-26 07:40:33 +04:00 committed by GitHub
commit abd2811dbd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 3 deletions

View file

@ -1,4 +1,12 @@
{ lib, fetchFromGitHub, rustPlatform, stdenv, Security, installShellFiles, nix-update-script }:
{ lib
, fetchFromGitHub
, rustPlatform
, stdenv
, Security
, SystemConfiguration
, installShellFiles
, nix-update-script
}:
rustPlatform.buildRustPackage rec {
pname = "rustic-rs";
@ -15,7 +23,7 @@ rustPlatform.buildRustPackage rec {
nativeBuildInputs = [ installShellFiles ];
buildInputs = lib.optionals stdenv.isDarwin [ Security ];
buildInputs = lib.optionals stdenv.isDarwin [ Security SystemConfiguration ];
postInstall = ''
for shell in {ba,fi,z}sh; do

View file

@ -27281,7 +27281,9 @@ with pkgs;
roon-server = callPackage ../servers/roon-server { };
rustic-rs = callPackage ../tools/backup/rustic-rs { inherit (darwin) Security; };
rustic-rs = callPackage ../tools/backup/rustic-rs {
inherit (darwin.apple_sdk.frameworks) Security SystemConfiguration;
};
supervise = callPackage ../tools/system/supervise { };