Files
nixos/overlays/default.nix
T

83 lines
2.2 KiB
Nix
Raw Normal View History

2023-06-08 00:53:19 -05:00
final: prev:
2022-10-15 00:19:38 -05:00
let
2023-06-28 22:51:18 -05:00
myPackages = pypackages: with pypackages; [
2022-11-01 08:35:06 -05:00
black
dateutil
flake8
ipython
2022-11-17 13:36:53 -06:00
jedi
2023-06-13 09:39:32 -05:00
jedi-language-server
2022-11-17 13:36:53 -06:00
mypy
pylint
2022-11-01 08:35:06 -05:00
pyyaml
responses
ruamel-yaml
tox
typing-extensions
virtualenv
];
2024-07-17 12:05:21 -05:00
myPython = prev.python312.withPackages myPackages;
2022-11-10 12:21:59 -06:00
macOver = file: og:
2023-06-08 00:53:19 -05:00
if prev.stdenv.isDarwin then
(prev.callPackage file {}) else
prev."${og}";
2022-11-01 08:35:06 -05:00
2023-07-26 22:32:17 -05:00
buildFirefoxXpiAddon = final.nur.repos.rycee.lib.buildFirefoxXpiAddon;
2023-04-25 13:49:30 -05:00
is2405 = prev.lib.versionAtLeast prev.lib.version "24";
2024-01-22 18:37:41 +00:00
2022-10-15 00:19:38 -05:00
in rec {
2022-11-01 08:35:06 -05:00
gregpy = myPython;
2023-06-13 09:39:32 -05:00
## Testing adding python packages in the correct manner
pythonPackagesExtensions = (prev.pythonPackagesExtensions or []) ++ [
2023-06-28 22:51:18 -05:00
(python-final: python-prev: let cp = python-final.callPackage; in {
django-rapyd-modernauth = cp ./django-rapyd-modernauth.nix {};
graypy = cp ./graypy.nix {};
itg-django-utils = cp ./itg-django-utils.nix {};
2023-06-19 16:03:16 -05:00
xonsh-apipenv = cp ./xonsh-apipenv.nix {};
2023-06-13 09:39:32 -05:00
})
];
2024-02-13 23:01:01 -06:00
# My own packages
2023-08-21 11:21:04 -05:00
aacs = prev.callPackage ./aacs.nix {};
2024-02-13 23:01:01 -06:00
create_ssl = prev.callPackage ./create_ssl.nix {};
2024-02-19 11:10:49 -06:00
enwiki-dump = prev.callPackage ./enwiki-dump.nix {};
2024-02-13 23:01:01 -06:00
hms = prev.callPackage ./hms {
pkgs = final.pkgs;
};
2024-02-19 11:10:49 -06:00
inject = prev.callPackage ./inject.nix { inherit (final) pkgs; };
inject-darwin = prev.callPackage ./inject-darwin.nix { inherit (final) pkgs; };
2024-02-13 23:01:01 -06:00
setup-ssh = prev.callPackage ./setup-ssh {
pkgs = final.pkgs;
};
2024-04-09 16:27:27 -05:00
upgrade-pg-cluster = prev.callPackage ./upgrade-pg-cluster.nix {};
2024-02-13 23:01:01 -06:00
# Overrides of packages
brew = prev.callPackage ./homebrew.nix {};
2024-01-22 18:37:41 +00:00
copier = (if is2405 then prev.copier.overridePythonAttrs (old: {
version = "9.1.0";
2024-01-20 22:45:17 -06:00
src = final.fetchFromGitHub {
owner = "copier-org";
repo = "copier";
rev = "v9.1.0";
hash = "sha256-x5r7Xv4lAOMkR+UIEeSY7LvbYMLpTWYuICYe9ygz1tA=";
postFetch = "rm $out/tests/demo/doc/ma*ana.txt";
};
2024-01-22 18:37:41 +00:00
}) else prev.copier);
2023-12-05 22:52:22 -06:00
libbluray-custom = prev.libbluray.override {
2023-08-21 13:14:51 -05:00
withAACS = true;
withBDplus = true;
};
template = prev.callPackage ./template.nix { };
2023-12-05 22:52:22 -06:00
handbrake = prev.handbrake.override {
libbluray = libbluray-custom;
};
2023-12-27 20:27:38 -06:00
libvirt-greg = prev.libvirt.overrideAttrs {
postInstall = prev.libvirt.postInstall + "rm -r $out/lib/systemd/system/libvirtd.service";
};
pipenv-ivr = prev.callPackage ./pipenv.nix { };
2022-05-04 13:52:38 -05:00
}