Files
Nomarchy/modules/home/scripts.nix
Bernardo Magri 33deeb494b initial commit
2026-04-01 17:06:01 +01:00

41 lines
793 B
Nix

{ config, pkgs, lib, ... }:
let
# Core dependencies needed by most Nomarchy scripts
nomarchy-deps = with pkgs; [
gum
hyprland
procps
libnotify
coreutils
gnused
gnugrep
pciutils
findutils
jq
swww
xmlstarlet
# Add any others commonly used in bin/
];
nomarchy-scripts = pkgs.stdenv.mkDerivation {
pname = "nomarchy-scripts";
version = "1.0.0";
src = ../../bin;
nativeBuildInputs = [ pkgs.makeWrapper ];
installPhase = ''
mkdir -p $out/bin
cp -r * $out/bin/
# Wrap every script to ensure dependencies are in PATH
find $out/bin -type f -exec wrapProgram {} \
--prefix PATH : ${lib.makeBinPath nomarchy-deps} \;
'';
};
in
{
home.packages = [ nomarchy-scripts ];
}