From ff325014f1aa4b7f4839d5618ecba69ff0704b24 Mon Sep 17 00:00:00 2001 From: Benson Chu Date: Sun, 26 Jan 2025 18:25:25 -0600 Subject: [PATCH] God nix is cool --- flake.nix | 1 + home/users/benson.nix | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index de7003c..e3d2514 100644 --- a/flake.nix +++ b/flake.nix @@ -86,6 +86,7 @@ # packages = with pkgs; [ mps-debug ]; inputsFrom = with pkgs; [ emacs ]; packages = with pkgs; [ mps ]; + buildInputs = with pkgs; [ xorg.libXrandr ]; shellHook = '' echo "MPS debug environment!" diff --git a/home/users/benson.nix b/home/users/benson.nix index 9b5c784..642b2fb 100644 --- a/home/users/benson.nix +++ b/home/users/benson.nix @@ -1,6 +1,11 @@ { inputs, config, pkgs, lib, ... }@args: let - my-emacs = ((pkgs.emacsPackagesFor pkgs.emacs-unstable) + emacs-with-xrandr = pkgs.emacs-unstable.overrideAttrs ( + oa: { + buildInputs = oa.buildInputs ++ [ pkgs.xorg.libXrandr ]; + } + ); + my-emacs = ((pkgs.emacsPackagesFor emacs-with-xrandr) .emacsWithPackages (epkgs: with epkgs; [ treesit-grammars.with-all-grammars mu4e