mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 23:13:19 +00:00
34 lines
773 B
Nix
34 lines
773 B
Nix
{ lib
|
|
, stdenv
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
, darwin
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "pls";
|
|
version = "0.0.1-beta.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pls-rs";
|
|
repo = "pls";
|
|
rev = "v${version}";
|
|
hash = "sha256-gJufm2krZSTdBbbfZ+355M9e3MJQbDEpSPf0EbZEayQ=";
|
|
};
|
|
|
|
cargoHash = "sha256-cDAHzK3pgpn5zEFdLBltf1e28yFFkXOzcF+nvDb8aWI=";
|
|
|
|
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
|
|
darwin.apple_sdk.frameworks.Security
|
|
];
|
|
|
|
meta = {
|
|
changelog = "https://github.com/pls-rs/pls/releases/tag/${src.rev}";
|
|
description = "Prettier and powerful ls";
|
|
homepage = "http://pls.cli.rs";
|
|
license = lib.licenses.gpl3Plus;
|
|
mainProgram = "pls";
|
|
maintainers = with lib.maintainers; [ tomasajt ];
|
|
};
|
|
}
|