summaryrefslogtreecommitdiff
path: root/YATwm.nix
blob: be7cd2db7843390e9f45f746fb1f208b67088009 (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.1";

    src = fetchgit {
        url = "https://git.tehbox.org/cgit/boss/YATwm.git/";
        rev = "v0.0.1";
        hash = "sha256-A4Yra/903rOeEbXfFia/A2HRPrFyE1b05mzHWlDImCY=";
    };

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