uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
36
pkgs/development/tools/ijq/default.nix
Normal file
36
pkgs/development/tools/ijq/default.nix
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
{ buildGoModule, fetchFromSourcehut, lib, jq, installShellFiles, makeWrapper, scdoc }:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "ijq";
|
||||
version = "0.3.8";
|
||||
|
||||
src = fetchFromSourcehut {
|
||||
owner = "~gpanders";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-N4wrm0nUmQ0NTsLkomJrcSiYJWgFUEh1/yn3pagM9vI=";
|
||||
};
|
||||
|
||||
vendorSha256 = "sha256-DX8m5FsqMZnzk1wgJA/ESZl0QeDv3p9huF4h1HY9DIA=";
|
||||
|
||||
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";
|
||||
homepage = "https://git.sr.ht/~gpanders/ijq";
|
||||
license = licenses.gpl3Plus;
|
||||
maintainers = with maintainers; [ justinas SuperSandro2000 ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue