3
0
Fork 0
forked from mirrors/nixpkgs

mcfly: enable on darwin

This commit is contained in:
Mario Rodas 2020-01-21 23:00:00 -05:00
parent 10b05a9b77
commit a06cbffd16
No known key found for this signature in database
GPG key ID: 4C4BEFD7B18DC5E8
2 changed files with 7 additions and 6 deletions

View file

@ -1,4 +1,4 @@
{ stdenv, rustPlatform, fetchFromGitHub }:
{ stdenv, rustPlatform, fetchFromGitHub, Security }:
rustPlatform.buildRustPackage rec {
pname = "mcfly";
@ -11,10 +11,10 @@ rustPlatform.buildRustPackage rec {
sha256 = "1g3n7ll0yg7w7hb3jgp25mlnqwsdzv0608f41z7q5gmsskdm3v1j";
};
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];
preInstall = ''
mkdir -p $out/share/mcfly
cp mcfly.bash $out/share/mcfly/
chmod +x $out/share/mcfly/mcfly.bash
install -Dm644 -t $out/share/mcfly mcfly.bash
'';
cargoSha256 = "1bf65kagvhsi6lg8187ihi5j45hkq9d8v6j7rzmmfhngdzvcfr69";
@ -23,7 +23,6 @@ rustPlatform.buildRustPackage rec {
homepage = https://github.com/cantino/mcfly;
description = "An upgraded ctrl-r for Bash whose history results make sense for what you're working on right now.";
license = licenses.mit;
platforms = platforms.linux;
maintainers = [ maintainers.melkor333 ];
};
}

View file

@ -4540,7 +4540,9 @@ in
mautrix-whatsapp = callPackage ../servers/mautrix-whatsapp { };
mcfly = callPackage ../tools/misc/mcfly { };
mcfly = callPackage ../tools/misc/mcfly {
inherit (darwin.apple_sdk.frameworks) Security;
};
mdbook = callPackage ../tools/text/mdbook {
inherit (darwin.apple_sdk.frameworks) CoreServices;