New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nushell: init at 0.5.0 #73121
nushell: init at 0.5.0 #73121
Conversation
Sweet! Figured we’d have to skip most if not all of the tests. |
Thanks for the hint. I've added it as |
Wow. That’s all it took?!? |
Tested on Thanks again! |
I do wonder if we should allow feature flags to be passed through, though. |
Okay, I think I got it working for both systems. diff --git a/pkgs/shells/nushell/default.nix b/pkgs/shells/nushell/default.nix
index 6e075b7ceee..767aa9eecfa 100644
--- a/pkgs/shells/nushell/default.nix
+++ b/pkgs/shells/nushell/default.nix
@@ -3,8 +3,12 @@
, rustPlatform
, openssl
, pkg-config
+, allFeatures ? true
+, xorg
+, python3
, libiconv
, Security
+, AppKit
}:
rustPlatform.buildRustPackage rec {
@@ -23,7 +27,10 @@ rustPlatform.buildRustPackage rec {
nativeBuildInputs = [ pkg-config ];
buildInputs = stdenv.lib.optionals stdenv.isLinux [ openssl ]
- ++ stdenv.lib.optionals stdenv.isDarwin [ libiconv Security ];
+ ++ stdenv.lib.optionals stdenv.isDarwin [ libiconv Security ]
+ ++ stdenv.lib.optionals allFeatures [ (if stdenv.isDarwin then AppKit else xorg.libX11) python3 ];
+
+ cargoBuildFlags = stdenv.lib.optional allFeatures "--features all";
preCheck = ''
export HOME=$TMPDIR
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index ee936c9a1b2..3c6ef4685d7 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -16531,7 +16531,7 @@ in
musl = callPackage ../os-specific/linux/musl { };
nushell = callPackage ../shells/nushell {
- inherit (darwin.apple_sdk.frameworks) Security;
+ inherit (darwin.apple_sdk.frameworks) AppKit Security;
};
nettools = if stdenv.isLinux then callPackage ../os-specific/linux/net-tools { } The only weird item I think is the dep on python3 for all-features. |
Co-authored-by: Evan Stoll <evanjs@users.noreply.github.com>
@evanjs sorry for the delay, I've applied your patch adding you as co-author :)
$ rg python3 $(nix-build -A nushell.cargoDeps)
|
finally got around to testing it. Cool ! thanks for doing it <3 |
Motivation for this change
Add https://github.com/nushell/nushell
supersedes and closes #68279
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nix-review --run "nix-review wip"
./result/bin/
)nix path-info -S
before and after)Notify maintainers
cc @evanjs @teto I think you were interested in this package