nixpkgs/pkgs/by-name/pl/pls/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
761 B
Nix
Raw Normal View History

2023-12-03 23:37:46 +00:00
{ lib
, stdenv
, rustPlatform
, fetchFromGitHub
, darwin
}:
rustPlatform.buildRustPackage rec {
pname = "pls";
2024-01-06 12:47:09 +00:00
version = "0.0.1-beta.4";
2023-12-03 23:37:46 +00:00
src = fetchFromGitHub {
owner = "dhruvkb";
repo = "pls";
rev = "v${version}";
2024-01-06 12:47:09 +00:00
hash = "sha256-YndQx7FImtbAfcbOpIGOdHQA1V7mbQiYBbpik2I+FCE=";
2023-12-03 23:37:46 +00:00
};
2024-01-06 12:47:09 +00:00
cargoHash = "sha256-HzkN856GHhY2sQ0jmQCCQva/yB4zzh+ccrQvibLFhxQ=";
2023-12-03 23:37:46 +00:00
buildInputs = lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.Security
];
meta = {
2024-01-06 12:47:09 +00:00
changelog = "https://github.com/pls-rs/pls/releases/tag/${src.rev}";
2023-12-03 23:37:46 +00:00
description = "Prettier and powerful ls";
2024-01-06 12:47:09 +00:00
homepage = "http://pls.cli.rs";
2023-12-03 23:37:46 +00:00
license = lib.licenses.gpl3Plus;
mainProgram = "pls";
maintainers = with lib.maintainers; [ tomasajt ];
};
}