forked from mirrors/nixpkgs
mcfly: enable on darwin
This commit is contained in:
parent
10b05a9b77
commit
a06cbffd16
|
@ -1,4 +1,4 @@
|
||||||
{ stdenv, rustPlatform, fetchFromGitHub }:
|
{ stdenv, rustPlatform, fetchFromGitHub, Security }:
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
pname = "mcfly";
|
pname = "mcfly";
|
||||||
|
@ -11,10 +11,10 @@ rustPlatform.buildRustPackage rec {
|
||||||
sha256 = "1g3n7ll0yg7w7hb3jgp25mlnqwsdzv0608f41z7q5gmsskdm3v1j";
|
sha256 = "1g3n7ll0yg7w7hb3jgp25mlnqwsdzv0608f41z7q5gmsskdm3v1j";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];
|
||||||
|
|
||||||
preInstall = ''
|
preInstall = ''
|
||||||
mkdir -p $out/share/mcfly
|
install -Dm644 -t $out/share/mcfly mcfly.bash
|
||||||
cp mcfly.bash $out/share/mcfly/
|
|
||||||
chmod +x $out/share/mcfly/mcfly.bash
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
cargoSha256 = "1bf65kagvhsi6lg8187ihi5j45hkq9d8v6j7rzmmfhngdzvcfr69";
|
cargoSha256 = "1bf65kagvhsi6lg8187ihi5j45hkq9d8v6j7rzmmfhngdzvcfr69";
|
||||||
|
@ -23,7 +23,6 @@ rustPlatform.buildRustPackage rec {
|
||||||
homepage = https://github.com/cantino/mcfly;
|
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.";
|
description = "An upgraded ctrl-r for Bash whose history results make sense for what you're working on right now.";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
platforms = platforms.linux;
|
|
||||||
maintainers = [ maintainers.melkor333 ];
|
maintainers = [ maintainers.melkor333 ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -4540,7 +4540,9 @@ in
|
||||||
|
|
||||||
mautrix-whatsapp = callPackage ../servers/mautrix-whatsapp { };
|
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 {
|
mdbook = callPackage ../tools/text/mdbook {
|
||||||
inherit (darwin.apple_sdk.frameworks) CoreServices;
|
inherit (darwin.apple_sdk.frameworks) CoreServices;
|
||||||
|
|
Loading…
Reference in a new issue