nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 39 lines 731 B view raw
1{ 2 pkgs, 3 lib, 4 buildGoModule, 5 fetchFromGitHub, 6}: 7let 8 pname = "vim-startuptime"; 9 version = "1.3.2"; 10in 11buildGoModule { 12 inherit pname version; 13 ldflags = [ 14 "-s" 15 "-w" 16 ]; 17 18 src = fetchFromGitHub { 19 owner = "rhysd"; 20 repo = "vim-startuptime"; 21 rev = "v${version}"; 22 hash = "sha256-d6AXTWTUawkBCXCvMs3C937qoRUZmy0qCFdSLcWh0BE="; 23 }; 24 25 nativeCheckInputs = with pkgs; [ 26 vim 27 neovim 28 ]; 29 30 vendorHash = null; 31 32 meta = with lib; { 33 homepage = "https://github.com/rhysd/vim-startuptime"; 34 description = "Small Go program for better `vim --startuptime` alternative"; 35 maintainers = with maintainers; [ _9yokuro ]; 36 license = licenses.mit; 37 mainProgram = "vim-startuptime"; 38 }; 39}