2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, vim, makeWrapper, jq, rofi, xrandr, xdotool, i3, gawk, libnotify }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
let
|
2021-01-17 00:15:33 +00:00
|
|
|
path = lib.makeBinPath [ vim jq rofi xrandr xdotool i3 gawk libnotify ];
|
2020-04-24 23:36:52 +00:00
|
|
|
in
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "i3-layout-manager";
|
2020-12-07 07:45:13 +00:00
|
|
|
version = "unstable-2020-05-04";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "klaxalk";
|
|
|
|
repo = pname;
|
2020-12-07 07:45:13 +00:00
|
|
|
rev = "df54826bba351d8bcd7ebeaf26c07c713af7912c";
|
|
|
|
sha256 = "0ccvr43yp26fnh5d82cw7jcfq2sbxzzmdx2cp15bmxr8ixr8knc3";
|
2020-04-24 23:36:52 +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-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/klaxalk/i3-layout-manager";
|
2020-10-19 00:13:06 +00:00
|
|
|
description = "Saving, loading and managing layouts for i3wm";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "layout_manager";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.linux;
|
2024-07-31 10:19:44 +00:00
|
|
|
maintainers = [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|