add some stuff

This commit is contained in:
Kopatz
2024-10-27 23:20:14 +01:00
parent 782ecdbf84
commit 465159200b
4 changed files with 27 additions and 1 deletions

View File

@@ -1,5 +1,10 @@
# This file defines overlays
{ inputs, ... }: {
{ inputs, ... }:
let
addPatches = pkg: patches:
pkg.overrideAttrs
(oldAttrs: { patches = (oldAttrs.patches or [ ]) ++ patches; });
in {
# This one brings our custom packages from the 'pkgs' directory
additions = final: _prev: import ./pkgs { pkgs = final; };
@@ -39,6 +44,7 @@
# example = prev.example.overrideAttrs (oldAttrs: rec {
# ...
# });
mangal = addPatches prev.mangal [ ./pkgs/patches/mangal.diff ];
};
# When applied, the unstable nixpkgs set (declared in the flake inputs) will