Files
nixpkgs/pkgs/by-name/st/starpls/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

47 lines
1.1 KiB
Nix

{
rustPlatform,
lib,
testers,
fetchFromGitHub,
protobuf,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "starpls";
version = "0.1.22";
src = fetchFromGitHub {
owner = "withered-magic";
repo = "starpls";
tag = "v${finalAttrs.version}";
hash = "sha256-t9kdpBKyGM61CKhtfO5urVVzyKpL0bX0pZuf0djDdCw=";
};
cargoHash = "sha256-5xYfQRm7U7sEQiJEfjaLznoXUxHsxnLmIEA/OxTkjFg=";
nativeBuildInputs = [
protobuf
];
# The tests assume Bazel build and environment variables set like
# RUNFILES_DIR which don't have an equivalent in Cargo.
doCheck = false;
passthru = {
tests.version = testers.testVersion {
package = finalAttrs.finalPackage;
command = "starpls version";
version = "v${finalAttrs.version}";
};
};
meta = {
description = "Language server for Starlark";
homepage = "https://github.com/withered-magic/starpls";
license = lib.licenses.asl20;
platforms = lib.platforms.all;
maintainers = with lib.maintainers; [ aaronjheng ];
sourceProvenance = with lib.sourceTypes; [ fromSource ];
mainProgram = "starpls";
};
})