add default.nix

build this project from NixOS with `nix-build`
This commit is contained in:
Colin 2024-02-28 20:05:09 +00:00
parent 32d229bb47
commit c1e71bb2bc
1 changed files with 33 additions and 0 deletions

33
default.nix Normal file
View File

@ -0,0 +1,33 @@
{ pkgs ? import <nixpkgs> {} }:
with pkgs;
stdenv.mkDerivation {
pname = "rofi";
version = "1.7.5-unstable";
src = ./.;
nativeBuildInputs = [
meson
ninja
pkg-config
flex
bison
wayland-scanner
];
buildInputs = [
libxkbcommon
pango
cairo
git
librsvg
check
libstartup_notification
xorg.libxcb
xorg.xcbutil
xorg.xcbutilwm
xcbutilxrm
xcb-util-cursor
which
wayland
wayland-protocols
];
}