2022-05-04 13:52:38 -05:00
|
|
|
self: super:
|
2022-10-15 00:19:38 -05:00
|
|
|
|
|
|
|
|
let
|
|
|
|
|
cp = super.python3.pkgs.callPackage;
|
|
|
|
|
|
2022-11-01 08:35:06 -05:00
|
|
|
myPackages = pypackages: with pypackages; with pkgs.my-py-addons; [
|
|
|
|
|
black
|
|
|
|
|
copier
|
|
|
|
|
datadog
|
|
|
|
|
datadog-api-client
|
|
|
|
|
dateutil
|
|
|
|
|
flake8
|
|
|
|
|
ipython
|
2022-11-17 13:36:53 -06:00
|
|
|
jedi
|
|
|
|
|
mypy
|
|
|
|
|
pylint
|
2022-11-01 08:35:06 -05:00
|
|
|
pyyaml
|
|
|
|
|
responses
|
|
|
|
|
ruamel-yaml
|
|
|
|
|
tox
|
|
|
|
|
typing-extensions
|
|
|
|
|
virtualenv
|
|
|
|
|
xonsh-direnv
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
myPython = super.python3.withPackages myPackages;
|
2022-11-10 12:21:59 -06:00
|
|
|
macOver = file: og:
|
|
|
|
|
if super.stdenv.isDarwin then
|
|
|
|
|
(super.callPackage file {}) else
|
|
|
|
|
super."${og}";
|
2022-11-01 08:35:06 -05:00
|
|
|
|
2023-04-25 13:49:30 -05:00
|
|
|
buildFirefoxXpiAddon = super.lib.makeOverridable ({ stdenv ? super.stdenv
|
|
|
|
|
, fetchurl ? super.fetchurl, pname, version, addonId, url, sha256, meta, ...
|
|
|
|
|
}:
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
|
|
|
|
|
|
inherit meta;
|
|
|
|
|
|
|
|
|
|
src = fetchurl { inherit url sha256; };
|
|
|
|
|
|
|
|
|
|
preferLocalBuild = true;
|
|
|
|
|
allowSubstitutes = true;
|
|
|
|
|
|
|
|
|
|
buildCommand = ''
|
|
|
|
|
dst="$out/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}"
|
|
|
|
|
mkdir -p "$dst"
|
|
|
|
|
install -v -m644 "$src" "$dst/${addonId}.xpi"
|
|
|
|
|
'';
|
|
|
|
|
});
|
|
|
|
|
|
2022-10-15 00:19:38 -05:00
|
|
|
in rec {
|
2022-11-01 08:35:06 -05:00
|
|
|
gregpy = myPython;
|
|
|
|
|
|
2022-10-15 00:19:38 -05:00
|
|
|
my-py-addons = rec {
|
|
|
|
|
copier = cp ./copier.nix {
|
|
|
|
|
inherit iteration-utilities
|
|
|
|
|
jinja2-ansible-filters
|
|
|
|
|
pydantic
|
|
|
|
|
pyyaml-include
|
|
|
|
|
;
|
|
|
|
|
};
|
|
|
|
|
datadog-api-client = cp ./datadog-api-client.nix {};
|
|
|
|
|
iteration-utilities = cp ./iteration-utilities.nix {};
|
|
|
|
|
jinja2-ansible-filters = cp ./jinja2-ansible-filters.nix {};
|
2022-10-17 11:13:57 -05:00
|
|
|
molecule = cp ./molecule.nix {};
|
|
|
|
|
molecule-containers = cp ./molecule-containers.nix {
|
|
|
|
|
inherit molecule molecule-docker molecule-podman;
|
|
|
|
|
};
|
|
|
|
|
molecule-docker = cp ./molecule-docker.nix {
|
|
|
|
|
inherit molecule;
|
|
|
|
|
};
|
|
|
|
|
molecule-podman = cp ./molecule-podman.nix {
|
|
|
|
|
inherit molecule;
|
|
|
|
|
};
|
2022-10-15 00:19:38 -05:00
|
|
|
pydantic = cp ./pydantic.nix {};
|
|
|
|
|
pyyaml-include = cp ./pyyaml-include.nix {};
|
|
|
|
|
xonsh-direnv = cp ./xonsh-direnv.nix {};
|
2022-05-04 13:52:38 -05:00
|
|
|
};
|
|
|
|
|
|
2023-05-02 09:59:43 -05:00
|
|
|
fcitx-engines = if super.stdenv.isDarwin then self.fcitx else self.fcitx5;
|
2023-05-02 00:47:13 -05:00
|
|
|
|
2023-03-07 17:17:24 -06:00
|
|
|
enwiki-dump = super.callPackage ./enwiki-dump.nix {};
|
2022-09-09 13:30:12 -05:00
|
|
|
hms = super.callPackage ./hms.nix {
|
|
|
|
|
pkgs = self.pkgs;
|
|
|
|
|
};
|
2023-03-17 20:08:11 -05:00
|
|
|
setup-ssh = super.callPackage ./setup-ssh.nix {
|
|
|
|
|
pkgs = self.pkgs;
|
|
|
|
|
};
|
2023-03-07 17:17:24 -06:00
|
|
|
kiwix-tools = super.callPackage ./kiwix-tools.nix {};
|
|
|
|
|
libkiwix = super.callPackage ./libkiwix.nix {};
|
2023-03-15 00:43:31 -05:00
|
|
|
zimlib = super.callPackage ./zimlib.nix {};
|
2022-09-09 13:30:12 -05:00
|
|
|
|
2022-05-04 13:52:38 -05:00
|
|
|
xonsh = super.xonsh.overridePythonAttrs (old: rec{
|
2022-11-10 10:54:22 -06:00
|
|
|
python3 = self.gregpy;
|
2022-10-15 00:19:38 -05:00
|
|
|
propagatedBuildInputs = old.propagatedBuildInputs ++ [ my-py-addons.xonsh-direnv ];
|
2022-05-04 13:52:38 -05:00
|
|
|
});
|
2022-08-02 01:50:50 -05:00
|
|
|
|
2022-11-10 12:21:59 -06:00
|
|
|
bitwarden = macOver ./mac/bitwarden.nix "bitwarden";
|
|
|
|
|
gnucash = macOver ./mac/gnucash.nix "gnucash";
|
2022-11-10 13:04:04 -06:00
|
|
|
handbrake = macOver ./mac/handbrake.nix "handbrake";
|
2022-11-10 14:19:28 -06:00
|
|
|
onlyoffice-bin = macOver ./mac/onlyoffice-bin.nix "onlyoffice-bin";
|
2022-11-10 14:10:22 -06:00
|
|
|
vlc = macOver ./mac/vlc.nix "vlc";
|
2022-05-04 13:52:38 -05:00
|
|
|
}
|