-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #333783 from mattpolzin/ijq_1_1_1
ijq: 1.1.0 -> 1.1.1
- Loading branch information
Showing
3 changed files
with
57 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
{ | ||
buildGoModule, | ||
fetchFromSourcehut, | ||
lib, | ||
jq, | ||
installShellFiles, | ||
makeBinaryWrapper, | ||
scdoc, | ||
}: | ||
|
||
buildGoModule rec { | ||
pname = "ijq"; | ||
version = "1.1.1"; | ||
|
||
src = fetchFromSourcehut { | ||
owner = "~gpanders"; | ||
repo = "ijq"; | ||
rev = "v${version}"; | ||
hash = "sha256-rnSpXMadZW6I+7tIYqr1Cb4z00gdREsqin/r6OXaDMA="; | ||
}; | ||
|
||
vendorHash = "sha256-zRa8MPWFvcoVm+LstbSAl1VY3oWMujZPjWS/ti1VXjE="; | ||
|
||
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 ]}" | ||
''; | ||
|
||
meta = with lib; { | ||
description = "Interactive wrapper for jq"; | ||
mainProgram = "ijq"; | ||
homepage = "https://git.sr.ht/~gpanders/ijq"; | ||
license = licenses.gpl3Plus; | ||
maintainers = with maintainers; [ | ||
justinas | ||
mattpolzin | ||
SuperSandro2000 | ||
]; | ||
}; | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters