Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / applications / window-managers / i3 / layout-manager.nix
blob8fd0364bb58c5e6383b0152ed777bf8d1403c577
1 { lib, stdenv, fetchFromGitHub, vim, makeWrapper, jq, rofi, xrandr, xdotool, i3, gawk, libnotify }:
3 let
4   path = lib.makeBinPath [ vim jq rofi xrandr xdotool i3 gawk libnotify ];
5 in
7 stdenv.mkDerivation rec {
8   pname = "i3-layout-manager";
9   version = "unstable-2020-05-04";
11   src = fetchFromGitHub {
12     owner = "klaxalk";
13     repo = pname;
14     rev = "df54826bba351d8bcd7ebeaf26c07c713af7912c";
15     sha256 = "0ccvr43yp26fnh5d82cw7jcfq2sbxzzmdx2cp15bmxr8ixr8knc3";
16   };
18   nativeBuildInputs = [ makeWrapper ];
20   dontBuild = true;
22   installPhase = ''
23     runHook preInstall
25     install -D layout_manager.sh $out/bin/layout_manager
26     wrapProgram $out/bin/layout_manager \
27       --prefix PATH : "${path}"
29     runHook postInstall
30   '';
32   meta = with lib; {
33     homepage = "https://github.com/klaxalk/i3-layout-manager";
34     description = "Saving, loading and managing layouts for i3wm";
35     license = licenses.mit;
36     platforms = platforms.linux;
37     maintainers = with maintainers; [ ];
38   };