2022-11-20 16:23:58 +01:00
|
|
|
# This file defines overlays
|
2023-02-12 00:32:13 +01:00
|
|
|
{ inputs, outputs, ... }:
|
2022-11-20 16:23:58 +01:00
|
|
|
{
|
|
|
|
# This one brings our custom packages from the 'pkgs' directory
|
2023-07-31 06:51:55 +02:00
|
|
|
additions = final: _prev: import ../pkgs {
|
|
|
|
pkgs = final;
|
|
|
|
};
|
2022-11-20 16:23:58 +01:00
|
|
|
|
|
|
|
# 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 {
|
|
|
|
# ...
|
|
|
|
# });
|
2023-07-31 06:51:55 +02:00
|
|
|
|
|
|
|
lib = prev.lib // {
|
|
|
|
maintainers = {
|
|
|
|
reo101 = {
|
|
|
|
name = "Pavel Atanasov";
|
|
|
|
email = "pavel.atanasov2001@gmail.com";
|
|
|
|
github = "reo101";
|
|
|
|
githubId = "37866329";
|
|
|
|
keys = [
|
|
|
|
{
|
|
|
|
fingerprint = "8A29 0250 C775 7813 1DD1 DC57 7275 0ABE E181 26D0";
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-05-04 21:39:09 +02:00
|
|
|
nix-monitored = inputs.nix-monitored.packages.${final.system}.default.override {
|
2023-12-25 17:49:26 +01:00
|
|
|
nix = prev.nix;
|
|
|
|
nix-output-monitor = prev.nix-output-monitor;
|
|
|
|
};
|
|
|
|
|
2024-06-01 15:07:36 +02:00
|
|
|
nixVersions = prev.nixVersions // {
|
|
|
|
monitored =
|
|
|
|
final.lib.flip final.lib.concatMapAttrs prev.nixVersions (version: package:
|
|
|
|
final.lib.optionalAttrs
|
|
|
|
(final.lib.and
|
|
|
|
(final.lib.all (prefix: ! final.lib.hasPrefix prefix version)
|
|
|
|
# TODO: smarter filtering of deprecated and non-packages
|
|
|
|
[
|
|
|
|
"nix_2_4"
|
|
|
|
"nix_2_5"
|
|
|
|
"nix_2_6"
|
|
|
|
"nix_2_7"
|
|
|
|
"nix_2_8"
|
|
|
|
"nix_2_9"
|
|
|
|
"nix_2_10"
|
|
|
|
"nix_2_11"
|
|
|
|
"nix_2_12"
|
|
|
|
"nix_2_13"
|
|
|
|
"nix_2_14"
|
|
|
|
"nix_2_15"
|
|
|
|
"nix_2_16"
|
|
|
|
"nix_2_17"
|
|
|
|
"unstable"
|
|
|
|
])
|
|
|
|
(final.lib.isDerivation package))
|
|
|
|
{
|
|
|
|
# NOTE: `lib.getBin` is needed, otherwise the `-dev` output is chosen
|
|
|
|
"${version}" = final.lib.getBin (inputs.nix-monitored.packages.${final.system}.default.override {
|
|
|
|
nix = package;
|
|
|
|
nix-output-monitor = prev.nix-output-monitor;
|
|
|
|
});
|
|
|
|
}
|
|
|
|
);
|
|
|
|
};
|
2023-09-06 21:08:56 +02:00
|
|
|
|
2023-02-17 01:47:47 +01:00
|
|
|
river = prev.river.overrideAttrs (oldAttrs: rec {
|
|
|
|
xwaylandSupport = true;
|
|
|
|
});
|
2023-03-13 17:18:03 +01:00
|
|
|
|
2023-07-31 06:51:55 +02:00
|
|
|
discord = prev.discord.override {
|
|
|
|
withOpenASAR = true;
|
|
|
|
withVencord = true;
|
|
|
|
};
|
2023-04-17 13:13:13 +02:00
|
|
|
|
|
|
|
prismlauncher = prev.prismlauncher.overrideAttrs (oldAttrs: {
|
|
|
|
patches = (oldAttrs.patches or [ ]) ++ [
|
|
|
|
./offline-mode-prism-launcher.diff
|
|
|
|
];
|
|
|
|
});
|
2022-11-20 16:23:58 +01:00
|
|
|
};
|
|
|
|
}
|