Fix version of Nix package (#9013)

pull/9038/head
Tanguy 12 months ago committed by GitHub
parent b81aacc5e1
commit 510928618d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -121,18 +121,18 @@
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;
src = filteredSource; inherit (craneLibMSRV.crateNameFromCargoToml {cargoToml = ./Cargo.toml;}) version;
# disable fetching and building of tree-sitter grammars in the helix-term build.rs src = filteredSource;
HELIX_DISABLE_AUTO_GRAMMAR_BUILD = "1"; # disable fetching and building of tree-sitter grammars in the helix-term build.rs
buildInputs = [stdenv.cc.cc.lib]; HELIX_DISABLE_AUTO_GRAMMAR_BUILD = "1";
# disable tests buildInputs = [stdenv.cc.cc.lib];
doCheck = false; # disable tests
meta.mainProgram = "hx"; doCheck = false;
} meta.mainProgram = "hx";
// craneLibMSRV.crateNameFromCargoToml {cargoToml = ./helix-term/Cargo.toml;}; };
cargoArtifacts = craneLibMSRV.buildDepsOnly commonArgs; cargoArtifacts = craneLibMSRV.buildDepsOnly commonArgs;
in { in {
packages = { packages = {

Loading…
Cancel
Save