mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-09-11 15:08:33 +01:00
Merge pull request #333783 from mattpolzin/ijq_1_1_1
ijq: 1.1.0 -> 1.1.1
This commit is contained in:
commit
770fe6989b
57
pkgs/by-name/ij/ijq/package.nix
Normal file
57
pkgs/by-name/ij/ijq/package.nix
Normal file
|
@ -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
|
||||
];
|
||||
};
|
||||
}
|
|
@ -1,37 +0,0 @@
|
|||
{ buildGoModule, fetchFromSourcehut, lib, jq, installShellFiles, makeWrapper, scdoc }:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "ijq";
|
||||
version = "1.1.0";
|
||||
|
||||
src = fetchFromSourcehut {
|
||||
owner = "~gpanders";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-KtWJwIofMKW+03DFY4UWf3ni1DKuH289svh8iOPo1so=";
|
||||
};
|
||||
|
||||
vendorHash = "sha256-oMkL4qZUS47h9izDad7Ar0Npd6toIZQuy1YIdEoJ2AM=";
|
||||
|
||||
nativeBuildInputs = [ installShellFiles makeWrapper 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 SuperSandro2000 ];
|
||||
};
|
||||
}
|
|
@ -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 { };
|
||||
|
|
Loading…
Reference in a new issue