Fix lang-server nix package build crash

This commit is contained in:
Jackson Wambolt 2024-04-22 21:17:47 -05:00
parent e4713ce2c5
commit 442121bfc7
No known key found for this signature in database
GPG Key ID: 76F29A42FEE8811C
2 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@ let
inherit (compile-deps) zigPkg llvmPkgs llvmVersion llvmMajorMinorStr glibcPath libGccSPath;
subPackagePath = if subPackage != null then "crates/${subPackage}" else null;
mainBin = if subPackage == "lang_srv" then "roc_language_server" else "roc";
mainBin = if subPackage == "language_server" then "roc_language_server" else "roc";
filteredSource = pkgs.callPackage ./fileFilter.nix { };
in
rustPlatform.buildRustPackage {

View File

@ -18,7 +18,7 @@ let
# all rust crates in workspace.members of Cargo.toml
roc-full = callPackage ./builder.nix { };
roc-lang-server = callPackage ./builder.nix { subPackage = "lang_srv"; };
roc-lang-server = callPackage ./builder.nix { subPackage = "language_server"; };
# only the CLI crate = executable provided in nightly releases
roc-cli = callPackage ./builder.nix { subPackage = "cli"; };
};