depot/third_party/nixpkgs/pkgs/by-name/vi/vim-startuptime/package.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

39 lines
732 B
Nix

{
pkgs,
lib,
buildGoModule,
fetchFromGitHub
}:
let
pname = "vim-startuptime";
version = "1.3.2";
in
buildGoModule {
inherit pname version;
ldflags = [
"-s"
"-w"
];
src = fetchFromGitHub {
owner = "rhysd";
repo = "vim-startuptime";
rev = "v${version}";
hash = "sha256-d6AXTWTUawkBCXCvMs3C937qoRUZmy0qCFdSLcWh0BE=";
};
nativeCheckInputs = with pkgs; [
vim
neovim
];
vendorHash = null;
meta = with lib; {
homepage = "https://github.com/rhysd/vim-startuptime";
description = "A small Go program for better `vim --startuptime` alternative";
maintainers = with maintainers; [ _9yokuro ];
license = licenses.mit;
mainProgram = "vim-startuptime";
};
}