Files
nixpkgs/pkgs/by-name/fa/faq/package.nix
Ethan Carter Edwards a1cfd01560 faq: modernize, fix version
Versions are supposed to start with a number

Link: https://github.com/NixOS/nixpkgs/issues/541820

Signed-off-by: Ethan Carter Edwards <ethan@ethancedwards.com>
2026-07-25 19:57:57 -04:00

52 lines
1.0 KiB
Nix

{
lib,
buildGoModule,
fetchFromGitHub,
jq,
oniguruma,
}:
buildGoModule (finalAttrs: {
pname = "faq";
# Latest git release (0.0.7) presents vendor issues - using latest commit instead.
version = "0.0.7-unstable-2022-01-09";
__structuredAttrs = true;
src = fetchFromGitHub {
owner = "jzelinskie";
repo = "faq";
rev = "594bb8e15dc4070300f39c168354784988646231";
hash = "sha256-IVnvqHjzUdiGwK2treZ/p9TayUZXS1q8sSZITSRkGdM=";
};
vendorHash = "sha256-731eINkboZiuPXX/HQ4r/8ogLedKBWx1IV7BZRKwU3A";
buildInputs = [
jq
oniguruma
];
ldflags = [
"-s"
"-X github.com/jzelinskie/faq/internal/version.Version=${finalAttrs.version}"
];
tags = [
"netgo"
];
subPackages = [
"cmd/faq"
];
doCheck = true;
meta = {
description = "Intended to be a more flexible jq, supporting additional formats";
mainProgram = "faq";
homepage = "https://github.com/jzelinskie/faq";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ quentin-m ];
};
})