2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, vim, makeWrapper, jq, rofi, xrandr, xdotool, i3, gawk, libnotify }:
|
2019-06-23 22:58:53 +00:00
|
|
|
|
|
|
|
let
|
2021-01-15 13:21:58 +00:00
|
|
|
path = lib.makeBinPath [ vim jq rofi xrandr xdotool i3 gawk libnotify ];
|
2019-06-23 22:58:53 +00:00
|
|
|
in
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "i3-layout-manager";
|
2020-12-05 23:43:07 +00:00
|
|
|
version = "unstable-2020-05-04";
|
2019-06-23 22:58:53 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "klaxalk";
|
|
|
|
repo = pname;
|
2020-12-05 23:43:07 +00:00
|
|
|
rev = "df54826bba351d8bcd7ebeaf26c07c713af7912c";
|
|
|
|
sha256 = "0ccvr43yp26fnh5d82cw7jcfq2sbxzzmdx2cp15bmxr8ixr8knc3";
|
2019-06-23 22:58:53 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
dontBuild = true;
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
install -D layout_manager.sh $out/bin/layout_manager
|
|
|
|
wrapProgram $out/bin/layout_manager \
|
|
|
|
--prefix PATH : "${path}"
|
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/klaxalk/i3-layout-manager";
|
2020-10-11 05:55:05 +00:00
|
|
|
description = "Saving, loading and managing layouts for i3wm";
|
2019-06-23 22:58:53 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.linux;
|
2019-12-26 14:13:48 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2019-06-23 22:58:53 +00:00
|
|
|
};
|
|
|
|
}
|