# This file defines overlays { pkgs, username, inputs, ... }: let dmenu-src = builtins.fetchTarball "https://git.jptrzy.xyz/dmenu/snapshot/master.tar.gz"; #dwm-src = builtins.fetchTarball "https://git.jptrzy.xyz/dwm/snapshot/master.tar.gz"; dwmblocks-src = builtins.fetchTarball "https://git.jptrzy.xyz/dwmblocks/snapshot/master.tar.gz"; sent-src = builtins.fetchTarball "https://git.jptrzy.xyz/sent/snapshot/master.tar.gz"; slock-src = builtins.fetchTarball "https://git.jptrzy.xyz/slock/snapshot/master.tar.gz"; dwm-src = /home/${username}/.local/src/dwm; in { # This one brings our custom packages from the 'pkgs' directory additions = final: _prev: import ../pkgs {pkgs = final;}; # When applied, the unstable nixpkgs set (declared in the flake inputs) will # be accessible through 'pkgs.unstable' #unstable-packages = final: _prev: { # unstable = import inputs.nixpkgs-unstable { # system = final.system; # config.allowUnfree = true; # }; #}; # This one contains whatever you want to overlay # You can change versions, add patches, set compilation flags, anything really. # https://nixos.wiki/wiki/Overlays modifications = final: prev: { # example = prev.example.overrideAttrs (oldAttrs: rec { # ... # }); dmenu = prev.dmenu.overrideAttrs (old: { src = dmenu-src; }); dwm = prev.dwm.overrideAttrs (old: { src = dwm-src; }); dwmblocks = prev.dwmblocks.overrideAttrs (old: { src = dwmblocks-src; }); sent = prev.dwm.overrideAttrs (old: { src = sent-src; }); slock = prev.slock.overrideAttrs (old: { src = slock-src; buildInputs = with pkgs; [ xorg.libXinerama xorg.libXft imlib2 ] ++ old.buildInputs; }); }; }