nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 33 lines 698 B view raw
1{ 2 lib, 3 buildGoModule, 4 fetchFromGitHub, 5}: 6 7buildGoModule rec { 8 pname = "lwc"; 9 version = "unstable-2022-07-26"; 10 11 src = fetchFromGitHub { 12 owner = "timdp"; 13 repo = "lwc"; 14 rev = "3330928c9d82200837350f85335f5e6c09f0658b"; 15 hash = "sha256-HFuXA5Y274XtgqG9odDAg9SSCgUxprnojfGavnYW4LE="; 16 }; 17 18 vendorHash = "sha256-av736cW0bPsGQV+XFL/q6p/9VhjOeDwkiK5DLRnRtUg="; 19 20 ldflags = [ 21 "-s" 22 "-w" 23 "-X=main.version=${src.rev}" 24 ]; 25 26 meta = with lib; { 27 description = "Live-updating version of the UNIX wc command"; 28 homepage = "https://github.com/timdp/lwc"; 29 license = licenses.mit; 30 maintainers = with maintainers; [ figsoda ]; 31 mainProgram = "lwc"; 32 }; 33}