summaryrefslogtreecommitdiff
path: root/YATwm.nix
diff options
context:
space:
mode:
authorBossCode45 <human.cyborg42@gmail.com>2024-12-19 15:00:45 +1300
committerBossCode45 <human.cyborg42@gmail.com>2024-12-24 15:56:39 +1300
commitd1d4a63d4473cd4910b678cf5b385f622186fbd3 (patch)
treee6a4a478ad63e29ab12479d88a700238b970ec26 /YATwm.nix
parentc3791254bfb127d64b329098bc792acaa9c30832 (diff)
downloadYATwm-d1d4a63d4473cd4910b678cf5b385f622186fbd3.tar.gz
YATwm-d1d4a63d4473cd4910b678cf5b385f622186fbd3.zip
feat: Added IPC client side to main binary
Updated command line arguments to use `getopt_long' Made it so both -v and --version work Made it so that if you give it non recognised arguments they are sent through the socket to the running window manager if possible.
Diffstat (limited to 'YATwm.nix')
-rw-r--r--YATwm.nix30
1 files changed, 30 insertions, 0 deletions
diff --git a/YATwm.nix b/YATwm.nix
new file mode 100644
index 0000000..3c583af
--- /dev/null
+++ b/YATwm.nix
@@ -0,0 +1,30 @@
+{
+ stdenv,
+ fetchgit,
+ xorg,
+ libnotify,
+ pkg-config
+}:
+
+
+stdenv.mkDerivation {
+ pname = "YATwm";
+ version = "0.0.1";
+
+ src = fetchgit {
+ url = "https://git.tehbox.org/cgit/boss/YATwm.git/";
+ rev = "v0.0.1";
+ hash = "sha256-c0GIwZFZoaYsq6cK1cPzjxwPZzNg7tyDh44vLFsdMAI=";
+ };
+
+ installPhase = ''
+runHook preInstall
+mkdir -p $out/bin
+install -D -m 755 YATwm $out/bin/YATwm
+install -D -m 644 yat.desktop $out/usr/share/xsessions/yat.desktop
+install -D -m 644 config $out/etc/YATwm/config
+runHook postInstall
+ '';
+
+ buildInputs = [ xorg.libX11 xorg.libXrandr libnotify pkg-config ];
+}