Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at fix-function-merge 49 lines 1.0 kB view raw
1{ lib 2, buildGoModule 3, fetchFromGitHub 4, jq 5, oniguruma 6}: 7 8buildGoModule rec { 9 pname = "faq"; 10 # Latest git release (0.0.7) presents vendor issues - using latest commit instead. 11 version = "unstable-2022-01-09"; 12 13 src = fetchFromGitHub { 14 owner = "jzelinskie"; 15 repo = "faq"; 16 rev = "594bb8e15dc4070300f39c168354784988646231"; 17 sha256 = "1lqrchj4sj16n6y5ljsp8v4xmm57gzkavbddq23dhlgkg2lfyn91"; 18 }; 19 vendorHash = "sha256-731eINkboZiuPXX/HQ4r/8ogLedKBWx1IV7BZRKwU3A"; 20 21 buildInputs = [ 22 jq 23 oniguruma 24 ]; 25 26 ldflags = [ 27 "-s" 28 "-w" 29 "-X github.com/jzelinskie/faq/internal/version.Version=${version}" 30 ]; 31 32 tags = [ 33 "netgo" 34 ]; 35 36 subPackages = [ 37 "cmd/faq" 38 ]; 39 40 doCheck = true; 41 42 meta = with lib; { 43 description = "faq is a tool intended to be a more flexible jq, supporting additional formats"; 44 mainProgram = "faq"; 45 homepage = "https://github.com/jzelinskie/faq"; 46 license = licenses.asl20; 47 maintainers = with maintainers; [ quentin-m ]; 48 }; 49}