evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / by-name / fz / fzf-zsh / package.nix
blob089a443a8237bc161593ce581a497197300757bd
1 { lib, stdenv, fetchFromGitHub, fzf }:
3 stdenv.mkDerivation rec {
4   pname = "fzf-zsh-unstable";
5   version = "2019-09-09";
7   src = fetchFromGitHub {
8     owner = "Wyntau";
9     repo = "fzf-zsh";
10     rev = "829d7e40cc437dce8a6e234e259bbd4065e87124";
11     sha256 = "1irjmxhcg1fm4g8p3psjqk7sz5qhj5kw73pyhv91njvpdhn9l26z";
12   };
14   strictDeps = true;
15   postPatch = ''
16     substituteInPlace fzf-zsh.plugin.zsh \
17       --replace \
18         'fzf_path="$( cd "$fzf_zsh_path/../fzf/" && pwd )"' \
19         "fzf_path=${fzf}" \
20       --replace \
21         '$fzf_path/shell' \
22         '${fzf}/share/fzf'
23   '';
25   dontBuild = true;
27   installPhase = ''
28     install -Dm0644 fzf-zsh.plugin.zsh $out/share/zsh/plugins/fzf-zsh/fzf-zsh.plugin.zsh
29   '';
31   meta = with lib; {
32     homepage = "https://github.com/wyntau/fzf-zsh";
33     description = "wrap fzf to use in oh-my-zsh";
34     license = licenses.mit;
35     maintainers = [ ];
36     platforms = platforms.unix;
37   };