mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-22 09:26:19 +04:00
Fix version of Nix package (#9013)
This commit is contained in:
parent
b81aacc5e1
commit
510928618d
@ -121,9 +121,10 @@
|
|||||||
rustToolchain = pkgs.pkgsBuildHost.rust-bin.fromRustupToolchainFile ./rust-toolchain.toml;
|
rustToolchain = pkgs.pkgsBuildHost.rust-bin.fromRustupToolchainFile ./rust-toolchain.toml;
|
||||||
craneLibMSRV = (crane.mkLib pkgs).overrideToolchain rustToolchain;
|
craneLibMSRV = (crane.mkLib pkgs).overrideToolchain rustToolchain;
|
||||||
craneLibStable = (crane.mkLib pkgs).overrideToolchain pkgs.pkgsBuildHost.rust-bin.stable.latest.default;
|
craneLibStable = (crane.mkLib pkgs).overrideToolchain pkgs.pkgsBuildHost.rust-bin.stable.latest.default;
|
||||||
commonArgs =
|
commonArgs = {
|
||||||
{
|
|
||||||
inherit stdenv;
|
inherit stdenv;
|
||||||
|
inherit (craneLibMSRV.crateNameFromCargoToml {cargoToml = ./helix-term/Cargo.toml;}) pname;
|
||||||
|
inherit (craneLibMSRV.crateNameFromCargoToml {cargoToml = ./Cargo.toml;}) version;
|
||||||
src = filteredSource;
|
src = filteredSource;
|
||||||
# disable fetching and building of tree-sitter grammars in the helix-term build.rs
|
# disable fetching and building of tree-sitter grammars in the helix-term build.rs
|
||||||
HELIX_DISABLE_AUTO_GRAMMAR_BUILD = "1";
|
HELIX_DISABLE_AUTO_GRAMMAR_BUILD = "1";
|
||||||
@ -131,8 +132,7 @@
|
|||||||
# disable tests
|
# disable tests
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
meta.mainProgram = "hx";
|
meta.mainProgram = "hx";
|
||||||
}
|
};
|
||||||
// craneLibMSRV.crateNameFromCargoToml {cargoToml = ./helix-term/Cargo.toml;};
|
|
||||||
cargoArtifacts = craneLibMSRV.buildDepsOnly commonArgs;
|
cargoArtifacts = craneLibMSRV.buildDepsOnly commonArgs;
|
||||||
in {
|
in {
|
||||||
packages = {
|
packages = {
|
||||||
|
Loading…
Reference in New Issue
Block a user