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
47
pkgs/tools/misc/tealdeer/default.nix
Normal file
47
pkgs/tools/misc/tealdeer/default.nix
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, rustPlatform
|
||||
, fetchFromGitHub
|
||||
, pkg-config
|
||||
, installShellFiles
|
||||
, openssl
|
||||
, Security
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "tealdeer";
|
||||
version = "1.5.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "dbrgn";
|
||||
repo = "tealdeer";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-yF46jCdC4UDswKa/83ZrM9VkZXQqzua2/S7y2bqYa+c=";
|
||||
};
|
||||
|
||||
cargoSha256 = "sha256-BIMaVeNSdKl2A9613S+wgmb6YmiF5YJU8pTMVQfjDwI=";
|
||||
|
||||
buildInputs = if stdenv.isDarwin then [ Security ] else [ openssl ];
|
||||
|
||||
nativeBuildInputs = [ installShellFiles pkg-config ];
|
||||
|
||||
postInstall = ''
|
||||
installShellCompletion --cmd tldr \
|
||||
--bash bash_tealdeer \
|
||||
--fish fish_tealdeer \
|
||||
--zsh zsh_tealdeer
|
||||
'';
|
||||
|
||||
# disable tests for now since one needs network
|
||||
# what is unavailable in sandbox build
|
||||
# and i can't disable just this one
|
||||
doCheck = false;
|
||||
|
||||
meta = with lib; {
|
||||
description = "A very fast implementation of tldr in Rust";
|
||||
homepage = "https://github.com/dbrgn/tealdeer";
|
||||
maintainers = with maintainers; [ davidak ];
|
||||
license = with licenses; [ asl20 mit ];
|
||||
mainProgram = "tldr";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue