summary refs log blame commit diff
path: root/pkgs/applications/window-managers/i3/easyfocus.nix
blob: 5c7a22eb76949c7be20cff301d4d55e822c08004 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
                                                                       
                          

  


                        



                          

                                                                    


                                    
                                                                                        








                                                   
                                                           




                                           
{ stdenv, fetchFromGitHub, pkgconfig, xorgproto, libxcb, xcbutilkeysyms
, xorg , i3ipc-glib , glib
}:

stdenv.mkDerivation {
  pname = "i3easyfocus";
  version = "20190411";

  src = fetchFromGitHub {
    owner = "cornerman";
    repo = "i3-easyfocus";
    rev = "fffb468f7274f9d7c9b92867c8cb9314ec6cf81a";
    sha256 = "1db23vzzmp0hnfss1fkd80za6d2pajx7hdwikw50pk95jq0w8wfm";
  };

  nativeBuildInputs = [ pkgconfig ];
  buildInputs = [ libxcb xcbutilkeysyms xorgproto xorg.libX11.dev i3ipc-glib glib.dev ];

  # Makefile has no rule for 'install'
  installPhase = ''
    mkdir -p $out/bin
    cp i3-easyfocus $out/bin
  '';

  meta = with stdenv.lib; {
    description = "Focus and select windows in i3";
    homepage = "https://github.com/cornerman/i3-easyfocus";
    maintainers = with maintainers; [teto];
    license = licenses.gpl3;
    platforms = platforms.linux;
  };
}