macchina: fix darwin build

This commit is contained in:
Stéphan Kochen 2021-05-17 22:10:21 +02:00 committed by Jonathan Ringer
parent 29fe52f3bd
commit 6207e75a00
2 changed files with 6 additions and 2 deletions

View file

@ -1,4 +1,5 @@
{ lib, rustPlatform, fetchFromGitHub, installShellFiles }:
{ lib, stdenv, rustPlatform, fetchFromGitHub, installShellFiles
, libiconv, Foundation }:
rustPlatform.buildRustPackage rec {
pname = "macchina";
@ -14,6 +15,7 @@ rustPlatform.buildRustPackage rec {
cargoSha256 = "sha256-OfOh0YXeLT/kBuR9SOV7pHa8Z4b6+JvtVwqqwd1hCJY=";
nativeBuildInputs = [ installShellFiles ];
buildInputs = lib.optionals stdenv.isDarwin [ libiconv Foundation ];
postInstall = ''
installShellCompletion target/completions/*.{bash,fish}

View file

@ -6575,7 +6575,9 @@ in
macchanger = callPackage ../os-specific/linux/macchanger { };
macchina = callPackage ../tools/misc/macchina { };
macchina = callPackage ../tools/misc/macchina {
inherit (darwin.apple_sdk.frameworks) Foundation;
};
madlang = haskell.lib.justStaticExecutables haskellPackages.madlang;