Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 33 lines 755 B view raw
1{ lib, buildGoModule, fetchFromGitHub, installShellFiles }: 2 3buildGoModule rec { 4 pname = "moar"; 5 version = "1.15.2"; 6 7 src = fetchFromGitHub { 8 owner = "walles"; 9 repo = pname; 10 rev = "v${version}"; 11 sha256 = "sha256-CUPMeuXjPVh1zWaonz7heJb0H9M4t1PksAtHe/KwsUE="; 12 }; 13 14 vendorHash = "sha256-aFCv6VxHD1bOLhCHXhy4ubik8Z9uvU6AeqcMqIZI2Oo="; 15 16 nativeBuildInputs = [ installShellFiles ]; 17 18 postInstall = '' 19 installManPage ./moar.1 20 ''; 21 22 ldflags = [ 23 "-s" "-w" 24 "-X" "main.versionString=v${version}" 25 ]; 26 27 meta = with lib; { 28 description = "Nice-to-use pager for humans"; 29 homepage = "https://github.com/walles/moar"; 30 license = licenses.bsd2WithViews; 31 maintainers = with maintainers; [ foo-dogsquared ]; 32 }; 33}