nix/overlays/default.nix

51 lines
1.4 KiB
Nix
Raw Normal View History

{
nixpkgs,
nixpkgsForIosevka,
...
}: {
2023-10-03 11:52:44 -05:00
# This one brings our custom packages from the 'pkgs' directory
additions = final: _prev:
import ../pkgs {
pkgs = final;
pkgsForIosevka = nixpkgsForIosevka.legacyPackages.${final.system};
};
2023-10-03 11:52:44 -05: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: {
2024-03-22 10:19:40 -05:00
pythonPackagesExtensions =
prev.pythonPackagesExtensions
++ [
(
python-final: python-prev: {
catppuccin = python-prev.catppuccin.overridePythonAttrs (oldAttrs: rec {
version = "1.3.2";
src = prev.fetchFromGitHub {
owner = "catppuccin";
repo = "python";
rev = "refs/tags/v${version}";
hash = "sha256-spPZdQ+x3isyeBXZ/J2QE6zNhyHRfyRQGiHreuXzzik=";
};
# can be removed next version
disabledTestPaths = [
"tests/test_flavour.py" # would download a json to check correctness of flavours
];
});
}
)
];
2023-10-03 11:52:44 -05:00
};
# When applied, the unstable nixpkgs set (declared in the flake inputs) will
# be accessible through 'pkgs.unstable'
unstable-packages = final: _prev: {
unstable = import nixpkgs {
2023-10-03 11:52:44 -05:00
system = final.system;
config.allowUnfree = true;
};
};
}