|
|
|
@ -121,9 +121,10 @@
|
|
|
|
|
rustToolchain = pkgs.pkgsBuildHost.rust-bin.fromRustupToolchainFile ./rust-toolchain.toml;
|
|
|
|
|
craneLibMSRV = (crane.mkLib pkgs).overrideToolchain rustToolchain;
|
|
|
|
|
craneLibStable = (crane.mkLib pkgs).overrideToolchain pkgs.pkgsBuildHost.rust-bin.stable.latest.default;
|
|
|
|
|
commonArgs =
|
|
|
|
|
{
|
|
|
|
|
commonArgs = {
|
|
|
|
|
inherit stdenv;
|
|
|
|
|
inherit (craneLibMSRV.crateNameFromCargoToml {cargoToml = ./helix-term/Cargo.toml;}) pname;
|
|
|
|
|
inherit (craneLibMSRV.crateNameFromCargoToml {cargoToml = ./Cargo.toml;}) version;
|
|
|
|
|
src = filteredSource;
|
|
|
|
|
# disable fetching and building of tree-sitter grammars in the helix-term build.rs
|
|
|
|
|
HELIX_DISABLE_AUTO_GRAMMAR_BUILD = "1";
|
|
|
|
@ -131,8 +132,7 @@
|
|
|
|
|
# disable tests
|
|
|
|
|
doCheck = false;
|
|
|
|
|
meta.mainProgram = "hx";
|
|
|
|
|
}
|
|
|
|
|
// craneLibMSRV.crateNameFromCargoToml {cargoToml = ./helix-term/Cargo.toml;};
|
|
|
|
|
};
|
|
|
|
|
cargoArtifacts = craneLibMSRV.buildDepsOnly commonArgs;
|
|
|
|
|
in {
|
|
|
|
|
packages = {
|
|
|
|
|