summaryrefslogtreecommitdiff
path: root/YATwm.nix
blob: a2a687813cb4e2082bd496062310b2ec7aa988dc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{
    stdenv,
    fetchgit,
    xorg,
    libnotify,
    pkg-config,
    inputs,
    ...
}:


stdenv.mkDerivation {
    pname = "YATwm";
    version = "0.0.2";

    src = fetchgit {
        url = "https://git.tehbox.org/cgit/boss/YATwm.git/";
        rev = "v0.0.2";
        hash = "sha256-k75sJip3YMiTZdFlVu+qfAz3URO4cjVtd/PvsaMvBNg=";
    };

    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
    ];
}