Skip to content

Commit

Permalink
Merge pull request #333783 from mattpolzin/ijq_1_1_1
Browse files Browse the repository at this point in the history
ijq: 1.1.0 -> 1.1.1
  • Loading branch information
drupol authored Aug 11, 2024
2 parents a8a213c + 8fa3743 commit 770fe69
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 39 deletions.
57 changes: 57 additions & 0 deletions pkgs/by-name/ij/ijq/package.nix
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
];
};
}
37 changes: 0 additions & 37 deletions pkgs/development/tools/ijq/default.nix

This file was deleted.

2 changes: 0 additions & 2 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8932,8 +8932,6 @@ with pkgs;
packages = config.ihaskell.packages or (_: []);
};

ijq = callPackage ../development/tools/ijq { };

iruby = callPackage ../applications/editors/jupyter-kernels/iruby { };

ike-scan = callPackage ../tools/security/ike-scan { };
Expand Down

0 comments on commit 770fe69

Please sign in to comment.