Merge pull request #269892 from sveitser/zhf-rustic-darwin-fix-build
rustic-rs: fix build on darwin
This commit is contained in:
commit
abd2811dbd
2 changed files with 13 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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 { };
|
||||
|
||||
|
|
Loading…
Reference in a new issue