diff --git a/Makefile b/Makefile index c26363e..f600050 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ all: compile proto: - wayland-scanner server-header /usr/share/wayland-protocols/stable/xdg-shell/xdg-shell.xml xdg-shell-protocol.h + wayland-scanner server-header $(shell pkg-config --variable=pkgdatadir wayland-protocols)/stable/xdg-shell/xdg-shell.xml xdg-shell-protocol.h compile: proto gcc -o absinthe src/* \ diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..2a22f19 --- /dev/null +++ b/flake.nix @@ -0,0 +1,28 @@ +{ + description = "Absinthe wayland compositor"; + + inputs = { + nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; + }; + + outputs = { self, nixpkgs }: + let + system = "x86_64_linux"; + pkgs = import nixpkgs { inherit system; }; + in + { + devShells.${system}.default = pkgs.mkShell { + packages = with pkgs; [ + pkg-config + gnumake + gcc + wayland + wayland-protocols + wayland-scanner + wlroots_0_19 + pixman + libxkbcommon + ]; + }; + }; +}