Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
62 lines
1.1 KiB
Nix
62 lines
1.1 KiB
Nix
{
|
|
buildGoModule,
|
|
fetchFromGitea,
|
|
lib,
|
|
jq,
|
|
installShellFiles,
|
|
makeBinaryWrapper,
|
|
scdoc,
|
|
nix-update-script,
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "ijq";
|
|
version = "1.2.0";
|
|
|
|
src = fetchFromGitea {
|
|
domain = "codeberg.org";
|
|
owner = "gpanders";
|
|
repo = "ijq";
|
|
rev = "v${version}";
|
|
hash = "sha256-PT7WnCZL4Cfo/+VW3ImOloDOI9d0GX4UTcC8Bf3OVAU=";
|
|
};
|
|
|
|
vendorHash = "sha256-1R3rv3FraT53dqGECRr+ulhplmmByqRW+VJ+y6nFR+Y=";
|
|
|
|
nativeBuildInputs = [
|
|
installShellFiles
|
|
makeBinaryWrapper
|
|
scdoc
|
|
];
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-X main.Version=${version}"
|
|
];
|
|
|
|
postBuild = ''
|
|
scdoc < ijq.1.scd > ijq.1
|
|
installManPage ijq.1
|
|
'';
|
|
|
|
postInstall = ''
|
|
wrapProgram "$out/bin/ijq" \
|
|
--prefix PATH : "${lib.makeBinPath [ jq ]}"
|
|
'';
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
meta = with lib; {
|
|
description = "Interactive wrapper for jq";
|
|
mainProgram = "ijq";
|
|
homepage = "https://codeberg.org/gpanders/ijq";
|
|
license = licenses.gpl3Plus;
|
|
maintainers = with maintainers; [
|
|
justinas
|
|
mattpolzin
|
|
SuperSandro2000
|
|
];
|
|
};
|
|
}
|