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
42
pkgs/tools/security/keybase/default.nix
Normal file
42
pkgs/tools/security/keybase/default.nix
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
{ stdenv, substituteAll, lib, buildGoModule, fetchFromGitHub
|
||||
, AVFoundation, AudioToolbox, ImageIO, CoreMedia
|
||||
, Foundation, CoreGraphics, MediaToolbox, gnupg
|
||||
}:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "keybase";
|
||||
version = "5.9.3";
|
||||
|
||||
modRoot = "go";
|
||||
subPackages = [ "kbnm" "keybase" ];
|
||||
|
||||
dontRenameImports = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "keybase";
|
||||
repo = "client";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-vPQ1hBd33DwsW0b79kNH1yd7mrwkoftIYFgmMVxC+78=";
|
||||
};
|
||||
vendorSha256 = "sha256-ckAnSSSEF00gbgxnPAi2Pi8TNu3nmAahK7TP6HnfmNo=";
|
||||
|
||||
patches = [
|
||||
(substituteAll {
|
||||
src = ./fix-paths-keybase.patch;
|
||||
gpg = "${gnupg}/bin/gpg";
|
||||
gpg2 = "${gnupg}/bin/gpg2";
|
||||
})
|
||||
];
|
||||
|
||||
buildInputs = lib.optionals stdenv.isDarwin [ AVFoundation AudioToolbox ImageIO CoreMedia Foundation CoreGraphics MediaToolbox ];
|
||||
tags = [ "production" ];
|
||||
ldflags = [ "-s" "-w" ];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://www.keybase.io/";
|
||||
description = "The Keybase official command-line utility and service";
|
||||
platforms = platforms.linux ++ platforms.darwin;
|
||||
maintainers = with maintainers; [ avaq carlsverre np rvolosatovs Br1ght0ne shofius ];
|
||||
license = licenses.bsd3;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue