nix-packages/overlay.nix

135 lines
6.8 KiB
Nix
Raw Normal View History

2023-04-22 14:40:58 +00:00
# You can use this file as a nixself overlay. This is useful in the
2022-09-25 13:06:44 +00:00
# case where you don't want to add the whole NUR namespace to your
# configuration.
2023-04-22 14:40:58 +00:00
system: self: super: let
lib = import ./lib {pkgs = super;}; # functions
flake = (lib.importFlake {inherit system;}).defaultNix;
2023-06-09 19:02:44 +00:00
getFlake = flakeName: let
2023-04-22 14:40:58 +00:00
lib = import ./lib {pkgs = super;};
flake = (lib.importFlake {inherit system;}).defaultNix;
in
2023-06-09 19:02:44 +00:00
flake.inputs.${flakeName};
getFlakeOverlay = flakeName: overlay: self: super: (getFlake flakeName).outputs.overlays.${overlay} self super;
2023-04-22 14:40:58 +00:00
2023-06-26 06:00:07 +00:00
riscv-overlay =
if system == "riscv64-linux"
then
(self: super: {
vf2Kernel = self.callPackage ./linux/vf2 {kernelPatches = [];};
meson = super.meson.overrideAttrs (_: {
doCheck = false;
doInstallCheck = false;
});
libarchive = super.libarchive.overrideAttrs (_: {
doCheck = false;
doInstallCheck = false;
});
openexr = super.openexr.overrideAttrs (_: {
doCheck = false;
doInstallCheck = false;
});
libopus = super.libopus.overrideAttrs (_: {
mesonFlags = [
2023-06-26 06:22:29 +00:00
"-Dfixed-point=false"
"-Dcustom-modes=true"
"-Dintrinsics=disabled"
"-Drtcd=disabled"
"-Dasm=disabled"
"-Dasm=disabled"
"-Ddocs=disabled"
2023-06-26 06:00:07 +00:00
];
doCheck = false;
doInstallCheck = false;
});
2023-06-26 06:22:29 +00:00
valgrind = self.callPackage ./riscv/valgrind {};
valgrind-light = self.valgrind;
openldap = super.openldap.overrideAttrs (_: {
doCheck = false;
doInstallCheck = false;
});
2023-06-26 06:00:07 +00:00
})
else (_: _: {});
2023-04-22 14:40:58 +00:00
overlays = [
2023-04-22 15:18:31 +00:00
(getFlakeOverlay "gomod2nix" "default")
2023-04-22 14:40:58 +00:00
(self: super: {
2023-04-22 15:07:13 +00:00
akkoma = self.callPackage ./akkoma {};
2023-08-05 15:25:06 +00:00
akkoma-fe = self.callPackage ./akkoma/akkoma-fe {};
2023-04-22 15:07:13 +00:00
admin-fe = self.callPackage ./akkoma/admin-fe {};
emoji-lotte = self.callPackage ./art/emoji/lotte {};
emoji-volpeon-blobfox = self.callPackage ./art/emoji/volpeon/blobfox.nix {};
emoji-volpeon-blobfox-flip = self.callPackage ./art/emoji/volpeon/blobfox_flip.nix {};
emoji-volpeon-bunhd = self.callPackage ./art/emoji/volpeon/bunhd.nix {};
emoji-volpeon-bunhd-flip = self.callPackage ./art/emoji/volpeon/bunhd_flip.nix {};
emoji-volpeon-drgn = self.callPackage ./art/emoji/volpeon/drgn.nix {};
emoji-volpeon-fox = self.callPackage ./art/emoji/volpeon/fox.nix {};
emoji-volpeon-gphn = self.callPackage ./art/emoji/volpeon/gphn.nix {};
emoji-volpeon-raccoon = self.callPackage ./art/emoji/volpeon/raccoon.nix {};
emoji-volpeon-vlpn = self.callPackage ./art/emoji/volpeon/vlpn.nix {};
2023-07-01 13:58:12 +00:00
emoji-volpeon-neofox = self.callPackage ./art/emoji/volpeon/neofox.nix {};
2023-08-12 11:07:49 +00:00
emoji-volpeon-neocat = self.callPackage ./art/emoji/volpeon/neocat.nix {};
2023-04-22 15:07:13 +00:00
emoji-caro = self.callPackage ./art/emoji/caro {};
lotte-art = self.callPackage ./art/lotte {};
alco-sans = self.callPackage ./fonts/kreative/alco-sans.nix {};
constructium = self.callPackage ./fonts/kreative/constructium.nix {};
fairfax = self.callPackage ./fonts/kreative/fairfax.nix {};
fairfax-hd = self.callPackage ./fonts/kreative/fairfax-hd.nix {};
kreative-square = self.callPackage ./fonts/kreative/kreative-square.nix {};
nasin-nanpa = self.callPackage ./fonts/nasin-nanpa {};
matrix-media-repo = self.callPackage ./matrix/matrix-media-repo {};
mautrix-discord = self.callPackage ./matrix/mautrix-discord {};
mautrix-whatsapp = self.callPackage ./matrix/mautrix-whatsapp {};
mautrix-signal = self.callPackage ./matrix/mautrix-signal {};
mautrix-telegram = self.callPackage ./matrix/mautrix-telegram {};
python-mautrix = self.python3Packages.callPackage ./python/mautrix.nix {};
python-tulir-telethon = self.python3Packages.callPackage ./python/tulir-telethon.nix {};
papermc = self.callPackage ./minecraft/papermc {};
python-plover-stroke = self.python3Packages.callPackage ./plover/plover-stroke.nix {};
python-rtf-tokenize = self.python3Packages.callPackage ./python/rtf-tokenize.nix {};
plover = self.python3Packages.callPackage ./plover/plover {};
plover-plugins-manager = self.python3Packages.callPackage ./plover/plover-plugins-manager.nix {};
python-simplefuzzyset = self.python3Packages.callPackage ./python/simplefuzzyset.nix {};
plover-plugin-emoji = self.python3Packages.callPackage ./plover/plover-emoji.nix {};
plover-plugin-tapey-tape = self.python3Packages.callPackage ./plover/plover-tapey-tape.nix {};
plover-plugin-yaml-dictionary = self.python3Packages.callPackage ./plover/plover-yaml-dictionary.nix {};
2023-07-06 16:13:52 +00:00
plover-plugin-python-dictionary = self.python3Packages.callPackage ./plover/plover-python-dictionary.nix {};
2023-07-09 15:40:19 +00:00
plover-plugin-stenotype-extended = self.python3Packages.callPackage ./plover/plover-stenotype-extended.nix {};
2023-04-22 15:07:13 +00:00
plover-plugin-machine-hid = self.python3Packages.callPackage ./plover/plover-machine-hid.nix {};
plover-plugin-rkb1-hid = self.python3Packages.callPackage ./plover/plover-rkb1-hid.nix {};
plover-dict-didoesdigital = self.callPackage ./plover/didoesdigital-dictionary.nix {};
miifox-net = self.python3Packages.callPackage ./web/miifox-net.nix {};
old-homepage = self.callPackage ./web/old-homepage.nix {};
python-instagram = self.python3Packages.callPackage ./python/instagram.nix {};
element-web = self.callPackage ./matrix/element-web {};
2023-04-22 14:40:58 +00:00
mautrix-cleanup = flake.inputs.mautrix-cleanup.packages.${system}.default;
2023-04-22 15:07:13 +00:00
woodpecker-agent = self.callPackage ./ci/woodpecker/agent.nix {};
woodpecker-cli = self.callPackage ./ci/woodpecker/cli.nix {};
woodpecker-frontend = self.callPackage ./ci/woodpecker/frontend.nix {};
woodpecker-server = self.callPackage ./ci/woodpecker/server.nix {};
2023-06-09 19:02:44 +00:00
hydra = (getFlake "hydra").outputs.packages.${system}.hydra.overrideAttrs (super: {
2023-04-22 14:40:58 +00:00
doCheck = false;
patches =
(super.patches or [])
++ [
./ci/hydra/add-gitea-push-hook.patch
./ci/hydra/jobset-inputs-for-flakes.patch
./ci/hydra/remove-hydra-size-limit.patch
];
});
hydra-unstable = self.hydra;
2023-04-25 06:52:51 +00:00
wordpress-plugins = self.callPackage ./web/wordpress-plugins {};
2023-04-27 10:38:52 +00:00
wordpress-themes = self.callPackage ./web/wordpress-themes {};
2023-05-09 16:42:05 +00:00
kubo = self.callPackage ./ipfs/kubo {};
linux-bcachefs = self.callPackage ./linux/bcachefs {kernelPatches = [];};
bcachefs-tools = self.callPackage ./linux/bcachefs-tools {};
2023-09-01 08:00:08 +00:00
asar-asm = self.callPackage ./compiler/asar {};
2023-07-19 12:21:58 +00:00
bsnes-plus = self.libsForQt5.callPackage ./emulator/bsnes-plus {};
2023-08-09 08:22:39 +00:00
sliding-sync = self.callPackage ./matrix/sliding-sync {};
2023-04-22 14:40:58 +00:00
})
riscv-overlay
];
2022-09-25 13:06:44 +00:00
in
2023-04-22 14:40:58 +00:00
super.lib.composeManyExtensions overlays self super