Skip to content

Commit

Permalink
Closer to a full flake build via naersk.
Browse files Browse the repository at this point in the history
Blocked on NixOS/nix#4423, build doesn't see
submodules.
  • Loading branch information
archseer committed May 3, 2021
1 parent 3038c2e commit b6a22e9
Show file tree
Hide file tree
Showing 5 changed files with 65 additions and 64 deletions.
80 changes: 38 additions & 42 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 16 additions & 16 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 9 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,15 @@
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs { inherit system; overlays = [ rust-overlay.overlay ]; };
naerskLib = pkgs.callPackage naersk {
inherit (pkgs.rust-bin.stable.latest.default) rustc cargo;
rust = (pkgs.rustChannelOf {
date = "2021-05-01";
channel = "nightly";
}).minimal; # cargo, rustc and rust-std
naerskLib = naersk.lib."${system}".override {
# naersk can't build with stable?!
# inherit (pkgs.rust-bin.stable.latest) rustc cargo;
rustc = rust;
cargo = rust;
};
in rec {
packages.helix = naerskLib.buildPackage {
Expand Down
3 changes: 1 addition & 2 deletions helix-term/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ once_cell = "1.4"
smol = "1"
smol-timeout = "0.6"
num_cpus = "1"
# tui = { version = "0.12", default-features = false, features = ["crossterm"] }
tui = { git = "https://github.com/fdehau/tui-rs", default-features = false, features = ["crossterm"] }
tui = { version = "0.15", default-features = false, features = ["crossterm"] }
crossterm = { version = "0.19", features = ["event-stream"] }
clap = { version = "3.0.0-beta.2 ", default-features = false, features = ["std", "cargo"] }

Expand Down
3 changes: 1 addition & 2 deletions helix-view/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ helix-core = { path = "../helix-core" }
helix-lsp = { path = "../helix-lsp"}

# Conversion traits
# tui = { version = "0.12", default-features = false, features = ["crossterm"], optional = true}
tui = { git = "https://github.com/fdehau/tui-rs", default-features = false, features = ["crossterm"], optional = true}
tui = { version = "0.15", default-features = false, features = ["crossterm"], optional = true}
crossterm = { version = "0.19", features = ["event-stream"], optional = true }
once_cell = "1.4"
url = "2"
Expand Down

0 comments on commit b6a22e9

Please sign in to comment.