diff options
author | Mario Rodas <marsam@users.noreply.github.com> | 2020-01-21 23:00:00 -0500 |
---|---|---|
committer | Mario Rodas <marsam@users.noreply.github.com> | 2020-01-21 23:00:00 -0500 |
commit | a06cbffd16a7e65998dca6729770fb4bef04ab43 (patch) | |
tree | 0f6974bb089e5338ed6121477db13921b4f16c9a /pkgs/tools/misc/mcfly | |
parent | 10b05a9b77c913d53f8116f82e87ffc1ba15c065 (diff) |
mcfly: enable on darwin
Diffstat (limited to 'pkgs/tools/misc/mcfly')
-rw-r--r-- | pkgs/tools/misc/mcfly/default.nix | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/pkgs/tools/misc/mcfly/default.nix b/pkgs/tools/misc/mcfly/default.nix index f04226cdc0480..7d85e709f73ae 100644 --- a/pkgs/tools/misc/mcfly/default.nix +++ b/pkgs/tools/misc/mcfly/default.nix @@ -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 ]; }; } |