mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
39 lines
912 B
Nix
39 lines
912 B
Nix
{ lib
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
, protobuf
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "postgres-lsp";
|
|
version = "0-unstable-2024-03-24";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "supabase";
|
|
repo = "postgres_lsp";
|
|
rev = "43ca9b675cb152ca7f38cfa6aff6dd2131dfa9a2";
|
|
hash = "sha256-n7Qbt9fGzC0CcleAtTWDInPz4oaPjI+pvIPrR5EYJ9U=";
|
|
fetchSubmodules = true;
|
|
};
|
|
|
|
cargoHash = "sha256-UEcHlkbYMA6xETMryWXsDHyAZYtLncRJn2jA6tvw7gQ=";
|
|
|
|
nativeBuildInputs = [
|
|
protobuf
|
|
rustPlatform.bindgenHook
|
|
];
|
|
|
|
cargoBuildFlags = [ "-p=postgres_lsp" ];
|
|
cargoTestFlags = cargoBuildFlags;
|
|
|
|
RUSTC_BOOTSTRAP = 1; # We need rust unstable features
|
|
|
|
meta = with lib; {
|
|
description = "Language Server for Postgres";
|
|
homepage = "https://github.com/supabase/postgres_lsp";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ figsoda ];
|
|
mainProgram = "postgres_lsp";
|
|
};
|
|
}
|