-
-
Notifications
You must be signed in to change notification settings - Fork 15.3k
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.2.0 #68279
nushell: init at 0.2.0 #68279
Conversation
Doesn’t it require Rust nightly anyway? There’s no way you’re going to get this to build as part of Nixpkgs until it can run on stable. |
At any rate, it looks like you're missing some dependencies. |
diff --git a/pkgs/shells/nushell/default.nix b/pkgs/shells/nushell/default.nix
index 03bc70ff643..607b87e0059 100644
--- a/pkgs/shells/nushell/default.nix
+++ b/pkgs/shells/nushell/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, fetchFromGitHub, rustPlatform, makeWrapper, openssl }:
+{ stdenv, fetchFromGitHub, rustPlatform, makeWrapper, openssl, pkg-config }:
with rustPlatform;
@@ -21,6 +21,8 @@ buildRustPackage rec {
buildInputs = [ makeWrapper openssl ];
+ nativeBuildInputs = [ pkg-config ];
+
RUST_SRC_PATH = rustPlatform.rustcSrc;
# installPhase = '' This allows me to continue with the build, but fails eventually with other, code-based errors. |
After my changes, in addition to using the latest sources from master (for nushell), I failed on compiling surf, as it required |
Also, there should be an entry in top-level/all-packages |
thanks for the feedback, I've pusehd the recommandation.
so it does seem I should try master as @evanjs did. Compiling this took way too long, is there some work to install rust dependencies as derivations ? compiling from scratch everytime takes a toll on the machine and my mind. If master doesn't compile, maybe it's just easier to wait a bit for the ecosystem to catch up. |
You could try installing sccache and run |
I think it's failing because it requires rust nightly:
|
According to upstream, nushell should work with the just released rust 1.39. |
So it should be possible to make progress on this after #72980. |
As @timokau mentioned, this does seem to build fine on stable. with import <nixpkgs> {};
let
inherit (stdenv) lib;
moz_overlay = import (builtins.fetchTarball https://github.com/mozilla/nixpkgs-mozilla/archive/master.tar.gz);
pkgs = import <nixpkgs> { overlays = [ moz_overlay ]; };
in
stdenv.mkDerivation {
name = "rust-env";
buildInputs = with pkgs; [
# Additional Dependencies
(pkgs.latest.rustChannels.stable.rust.override { extensions = [ "rust-src" "rust-std" "rustfmt-preview" "clippy-preview" ]; })
pkgconfig
openssl
];
} We should be good to go once 1.39.0 is built on hydra. |
not sure when I can take a look at this so anyone feel free to pick it up. |
Looks like it builds on 1.39.0, but |
Motivation for this change
wanted to try the powershell-like nushell (https://news.ycombinator.com/item?id=20783006).
but so far it fails with
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nix-review --run "nix-review wip"
./result/bin/
)nix path-info -S
before and after)Notify maintainers
cc @