diff --git a/pkgs/by-name/pl/pls/package.nix b/pkgs/by-name/pl/pls/package.nix index b4a0b9a5f50f9..9043000323eb4 100644 --- a/pkgs/by-name/pl/pls/package.nix +++ b/pkgs/by-name/pl/pls/package.nix @@ -2,23 +2,31 @@ lib, rustPlatform, fetchFromGitHub, + pkg-config, + libgit2, }: rustPlatform.buildRustPackage rec { pname = "pls"; - version = "0.0.1-beta.8"; + version = "0.0.1-beta.9"; src = fetchFromGitHub { owner = "pls-rs"; repo = "pls"; - rev = "v${version}"; - hash = "sha256-gJufm2krZSTdBbbfZ+355M9e3MJQbDEpSPf0EbZEayQ="; + tag = "v${version}"; + hash = "sha256-ofwdhGpqYlADDY2BLe0SkoHWqSeRNtQaXK61zWVFXzw="; }; - cargoHash = "sha256-cDAHzK3pgpn5zEFdLBltf1e28yFFkXOzcF+nvDb8aWI="; + cargoHash = "sha256-u9uge44epAi9UiROThUewCNzmgeEi/Gy9h9NxVUb0YM="; + + env.LIBGIT2_NO_VENDOR = "1"; + + nativeBuildInputs = [ pkg-config ]; + + buildInputs = [ libgit2 ]; meta = { - changelog = "https://github.com/pls-rs/pls/releases/tag/${src.rev}"; + changelog = "https://github.com/pls-rs/pls/releases/tag/${src.tag}"; description = "Prettier and powerful ls"; homepage = "http://pls.cli.rs"; license = lib.licenses.gpl3Plus;