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
43
pkgs/shells/zsh/zinit/default.nix
Normal file
43
pkgs/shells/zsh/zinit/default.nix
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
{ stdenvNoCC, lib, fetchFromGitHub, installShellFiles }:
|
||||
|
||||
stdenvNoCC.mkDerivation rec {
|
||||
pname = "zinit";
|
||||
version = "3.7";
|
||||
src = fetchFromGitHub {
|
||||
owner = "zdharma-continuum";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
hash = "sha256-B+cTGz+U8MR22l6xXdRAAjDr+ulCk+CJ9GllFMK0axE=";
|
||||
};
|
||||
# adapted from https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=zsh-zplugin-git
|
||||
dontBuild = true;
|
||||
strictDeps = true;
|
||||
nativeBuildInputs = [ installShellFiles ];
|
||||
installPhase = ''
|
||||
outdir="$out/share/$pname"
|
||||
|
||||
cd "$src"
|
||||
|
||||
# Zplugin's source files
|
||||
install -dm0755 "$outdir"
|
||||
# Installing also backward compatibility layer
|
||||
install -m0644 z{plugin,init}{,-side,-install,-autoload}.zsh "$outdir"
|
||||
install -m0755 git-process-output.zsh "$outdir"
|
||||
|
||||
# Zplugin autocompletion
|
||||
installShellCompletion --zsh _zinit
|
||||
|
||||
#TODO:Zplugin-module files
|
||||
# find zmodules/ -type d -exec install -dm 755 "{}" "$outdir/{}" \;
|
||||
# find zmodules/ -type f -exec install -m 744 "{}" "$outdir/{}" \;
|
||||
|
||||
'';
|
||||
#TODO:doc output
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/zdharma-continuum/zinit";
|
||||
description = "Flexible zsh plugin manager";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ pasqui23 sei40kr ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue