summaryrefslogtreecommitdiff
path: root/YATwm.nix
diff options
context:
space:
mode:
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 ];
+}