Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 49 lines 959 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 pkg-config, 6 xorgproto, 7 libxcb, 8 xcbutilkeysyms, 9 xorg, 10 i3ipc-glib, 11 glib, 12}: 13 14stdenv.mkDerivation { 15 pname = "i3easyfocus"; 16 version = "20190411"; 17 18 src = fetchFromGitHub { 19 owner = "cornerman"; 20 repo = "i3-easyfocus"; 21 rev = "fffb468f7274f9d7c9b92867c8cb9314ec6cf81a"; 22 sha256 = "1db23vzzmp0hnfss1fkd80za6d2pajx7hdwikw50pk95jq0w8wfm"; 23 }; 24 25 nativeBuildInputs = [ pkg-config ]; 26 buildInputs = [ 27 libxcb 28 xcbutilkeysyms 29 xorgproto 30 xorg.libX11.dev 31 i3ipc-glib 32 glib.dev 33 ]; 34 35 # Makefile has no rule for 'install' 36 installPhase = '' 37 mkdir -p $out/bin 38 cp i3-easyfocus $out/bin 39 ''; 40 41 meta = with lib; { 42 description = "Focus and select windows in i3"; 43 mainProgram = "i3-easyfocus"; 44 homepage = "https://github.com/cornerman/i3-easyfocus"; 45 maintainers = with maintainers; [ teto ]; 46 license = licenses.gpl3; 47 platforms = platforms.linux; 48 }; 49}