-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
53 lines (45 loc) · 1.11 KB
/
flake.nix
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
{
description = "HellWM";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
outputs = { self, nixpkgs }: {
packages = let
system = "x86_64-linux";
pkgs = import nixpkgs { inherit system; };
in
{
default = pkgs.stdenv.mkDerivation {
pname = "hellwm";
version = "0.0.1";
src = pkgs.lib.cleanSource ./.;
buildInputs = with pkgs; [
lua
pixman
wayland
libinput
pkg-config
wlroots_0_18
libxkbcommon
wayland-scanner
wayland-protocols
];
buildPhase = ''
make
'';
installPhase = ''
mkdir -p $out/bin
cp hellwm $out/bin
'';
meta = with pkgs.lib; {
description = "HellWM";
homepage = "https://github.com/HellSoftware/HellWM";
maintainers = [ "danihek" ];
};
};
};
defaultPackage.x86_64-linux = self.packages.default;
defaultApp.x86_64-linux = {
type = "app";
program = "${self.packages.default}/bin/hellwm";
};
};
}