From 077190eff54b98af1b151a13aa2f0a645e221324 Mon Sep 17 00:00:00 2001 From: agryphus Date: Wed, 18 Oct 2023 00:52:55 -0400 Subject: [PATCH] Added gnumake environment to configuration.nix --- .config/nixos/configuration.nix | 35 ++++++++++++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/.config/nixos/configuration.nix b/.config/nixos/configuration.nix index 64d2805..bc143d0 100644 --- a/.config/nixos/configuration.nix +++ b/.config/nixos/configuration.nix @@ -76,6 +76,9 @@ enable = true; autorun = false; + autoRepeatDelay = 300; + autoRepeatInterval = 50; + # Configure keymap in X11 layout = "us"; xkbOptions = "eurosign:e,caps:escape"; @@ -213,6 +216,8 @@ nix-index home-manager + # Pop into an environment abiding by the Filesystem Hierarchy Standard to run + # applications which do not play nicely with NixOS. ( let fhs-run = pkgs.buildFHSUserEnv { @@ -225,8 +230,36 @@ ''; }; in - fhs-run # Shell abiding by the Filesystem Hierarchy Standard + fhs-run ) + + # Defining an environment to run "make" with the proper libraries installed + # "make", in the main environment, references the script, which envokes the + # environment, and passes the args to gnumake. + ( + let + make-shell = pkgs.buildEnv { + name = "make-shell"; + paths = with pkgs; [ + # Tools + gnumake + pkg-config + + # Libraries + harfbuzz + xorg.libX11.dev + xorg.libXft + xorg.libXinerama + ]; + }; + in + (pkgs.writeScriptBin "make" '' + #!/usr/bin/env sh + nix-shell -p ${make-shell} --run "make $*" + '') + ) + + ]; #nixpkgs.overlays = [