Merge pull request #211486 from figsoda/macchina

macchina: fix darwin build, add figsoda as a maintainer
This commit is contained in:
figsoda 2023-01-19 18:42:45 -05:00 committed by GitHub
commit 25940fd0df
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 10 deletions

View file

@ -1,10 +1,9 @@
{ lib { lib
, stdenv
, rustPlatform , rustPlatform
, fetchFromGitHub , fetchFromGitHub
, installShellFiles , installShellFiles
, libiconv , stdenv
, Foundation , darwin
}: }:
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
@ -25,12 +24,12 @@ rustPlatform.buildRustPackage rec {
]; ];
buildInputs = lib.optionals stdenv.isDarwin [ buildInputs = lib.optionals stdenv.isDarwin [
libiconv darwin.apple_sdk.frameworks.AppKit
Foundation darwin.apple_sdk.frameworks.DisplayServices
]; ];
postInstall = '' postInstall = ''
installShellCompletion target/completions/*.{bash,fish} installManPage doc/macchina.{1,7}
''; '';
meta = with lib; { meta = with lib; {
@ -38,6 +37,6 @@ rustPlatform.buildRustPackage rec {
homepage = "https://github.com/Macchina-CLI/macchina"; homepage = "https://github.com/Macchina-CLI/macchina";
changelog = "https://github.com/Macchina-CLI/macchina/releases/tag/v${version}"; changelog = "https://github.com/Macchina-CLI/macchina/releases/tag/v${version}";
license = with licenses; [ mit ]; license = with licenses; [ mit ];
maintainers = with maintainers; [ _414owen ]; maintainers = with maintainers; [ _414owen figsoda ];
}; };
} }

View file

@ -9469,9 +9469,7 @@ with pkgs;
macchanger = callPackage ../os-specific/linux/macchanger { }; 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.compose.justStaticExecutables haskellPackages.madlang; madlang = haskell.lib.compose.justStaticExecutables haskellPackages.madlang;