btrbk: add mainProgram
[NixPkgs.git] / pkgs / by-name / zs / zsh-you-should-use / package.nix
blob0746754ecfefae5cb77708bb8d7411da9d20b67f
1 { lib, stdenv, fetchFromGitHub }:
3 stdenv.mkDerivation rec {
4   pname = "zsh-you-should-use";
5   version = "1.9.0";
7   src = fetchFromGitHub {
8     owner = "MichaelAquilina";
9     repo = pname;
10     rev = version;
11     sha256 = "sha256-+3iAmWXSsc4OhFZqAMTwOL7AAHBp5ZtGGtvqCnEOYc0=";
12   };
14   strictDeps = true;
15   dontBuild = true;
17   installPhase = ''
18     install -D you-should-use.plugin.zsh $out/share/zsh/plugins/you-should-use/you-should-use.plugin.zsh
19   '';
21   meta = with lib; {
22     homepage = "https://github.com/MichaelAquilina/zsh-you-should-use";
23     license = licenses.gpl3;
24     description = "ZSH plugin that reminds you to use existing aliases for commands you just typed";
25     maintainers = [ ];
26   };