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
57
pkgs/development/tools/dyff/default.nix
Normal file
57
pkgs/development/tools/dyff/default.nix
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "dyff";
|
||||
version = "1.5.3";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "homeport";
|
||||
repo = "dyff";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-On3n4qJUcGhJfh0B1ESE5zl1fb/RW12eFPxx5sTqfpw=";
|
||||
};
|
||||
|
||||
vendorSha256 = "sha256-eI3E83bYSMfi7fInBsPflE3zUGHF6diSkXDy04+CeqQ=";
|
||||
|
||||
subPackages = [
|
||||
"cmd/dyff"
|
||||
"pkg/dyff"
|
||||
"internal/cmd"
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ installShellFiles ];
|
||||
|
||||
# test fails with the injected version
|
||||
postPatch = ''
|
||||
substituteInPlace internal/cmd/cmds_test.go \
|
||||
--replace "version (development)" ${version}
|
||||
'';
|
||||
|
||||
ldflags = [
|
||||
"-s"
|
||||
"-w"
|
||||
"-X=github.com/homeport/dyff/internal/cmd.version=${version}"
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
installShellCompletion --cmd dyff \
|
||||
--bash <($out/bin/dyff completion bash) \
|
||||
--fish <($out/bin/dyff completion fish) \
|
||||
--zsh <($out/bin/dyff completion zsh)
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "A diff tool for YAML files, and sometimes JSON";
|
||||
longDescription = ''
|
||||
dyff is inspired by the way the old BOSH v1 deployment output reported
|
||||
changes from one version to another by only showing the parts of a YAML
|
||||
file that change.
|
||||
|
||||
Each difference is referenced by its location in the YAML document by
|
||||
using either the Spruce or go-patch path syntax.
|
||||
'';
|
||||
homepage = "https://github.com/homeport/dyff";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ edlimerkaj ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue