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
39
pkgs/shells/zsh/spaceship-prompt/default.nix
Normal file
39
pkgs/shells/zsh/spaceship-prompt/default.nix
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
{ lib, stdenvNoCC, fetchFromGitHub }:
|
||||
|
||||
stdenvNoCC.mkDerivation rec {
|
||||
pname = "spaceship-prompt";
|
||||
version = "3.16.4";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "denysdovhan";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-4G1+K6ENLwChtivR7Ura0vl6Ph9Wae3SOXCW1pNbgHI=";
|
||||
};
|
||||
|
||||
strictDeps = true;
|
||||
dontBuild = true;
|
||||
|
||||
installPhase = ''
|
||||
install -Dm644 LICENSE.md "$out/share/licenses/spaceship-prompt/LICENSE"
|
||||
install -Dm644 README.md "$out/share/doc/spaceship-prompt/README.md"
|
||||
find docs -type f -exec install -Dm644 {} "$out/share/doc/spaceship-prompt/{}" \;
|
||||
find lib -type f -exec install -Dm644 {} "$out/lib/spaceship-prompt/{}" \;
|
||||
find scripts -type f -exec install -Dm644 {} "$out/lib/spaceship-prompt/{}" \;
|
||||
find sections -type f -exec install -Dm644 {} "$out/lib/spaceship-prompt/{}" \;
|
||||
install -Dm644 spaceship.zsh "$out/lib/spaceship-prompt/spaceship.zsh"
|
||||
install -d "$out/share/zsh/themes/"
|
||||
ln -s "$out/lib/spaceship-prompt/spaceship.zsh" "$out/share/zsh/themes/spaceship.zsh-theme"
|
||||
install -d "$out/share/zsh/site-functions/"
|
||||
ln -s "$out/lib/spaceship-prompt/spaceship.zsh" "$out/share/zsh/site-functions/prompt_spaceship_setup"
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Zsh prompt for Astronauts";
|
||||
homepage = "https://github.com/denysdovhan/spaceship-prompt/";
|
||||
changelog = "https://github.com/spaceship-prompt/spaceship-prompt/releases/tag/v${version}";
|
||||
license = licenses.mit;
|
||||
platforms = platforms.unix;
|
||||
maintainers = with maintainers; [ nyanloutre fortuneteller2k ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue