From c0c861372e3caa132028910a494bf38db4f24e37 Mon Sep 17 00:00:00 2001 From: Colin Date: Wed, 28 Feb 2024 20:05:09 +0000 Subject: [PATCH] add default.nix build this project from NixOS with `nix-build` --- default.nix | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 default.nix diff --git a/default.nix b/default.nix new file mode 100644 index 00000000..4399533b --- /dev/null +++ b/default.nix @@ -0,0 +1,44 @@ +{ pkgs ? import {} }: +with pkgs; +stdenv.mkDerivation { + pname = "rofi"; + version = "1.7.5-unstable"; + src = ./.; + + depsBuildBuild = [ + buildPackages.stdenv.cc + pkg-config + glib + ]; + nativeBuildInputs = [ + meson + ninja + pkg-config + flex + bison + pandoc + wayland-protocols + wayland-scanner + ]; + buildInputs = [ + libxkbcommon + pango + cairo + git + librsvg + check + libstartup_notification + xorg.libxcb + xcb-imdkit + xcb-util-cursor + xorg.xcbutilkeysyms + xorg.xcbutil + xorg.xcbutilwm + xcbutilxrm + wayland + wayland-protocols + which + ]; + + mesonFlags = [ "-Dimdkit=true" ]; +}