about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/tools/ijq/default.nix
blob: f3c0b6c7b1b8f49e95a8f556628cc4e57a97df8e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{ buildGoModule, fetchgit, lib, jq, makeWrapper }:

buildGoModule rec {
  pname = "ijq";
  version = "0.3.4";

  src = fetchgit {
    url = "https://git.sr.ht/~gpanders/ijq";
    rev = "v${version}";
    sha256 = "ZKxEK6SPxEC0S5yXSzITPn0HhpJa4Bcf9X8/N+ZZAeA=";
  };

  vendorSha256 = "04KlXE2I8ZVDbyo9tBnFskLB6fo5W5/lPzSpo8KGqUU=";

  nativeBuildInputs = [ makeWrapper ];

  postInstall = ''
    wrapProgram "$out/bin/ijq" \
      --prefix PATH : "${lib.makeBinPath [ jq ]}"
  '';

  meta = with lib; {
    description = "Interactive wrapper for jq";
    homepage = "https://git.sr.ht/~gpanders/ijq";
    license = licenses.gpl3Plus;
    maintainers = with maintainers; [ justinas ];
  };
}