2023-05-17 23:17:24 +00:00
|
|
|
# this supports being used as an overlay or in a standalone context
|
|
|
|
# - if overlay, invoke as `(final: prev: import ./. { inherit final; pkgs = prev; })`
|
|
|
|
# - if standalone: `import ./. { inherit pkgs; }`
|
|
|
|
#
|
|
|
|
# using the correct invocation is critical if any packages mentioned here are
|
|
|
|
# additionally patched elsewhere
|
|
|
|
#
|
|
|
|
{ pkgs ? import <nixpkgs> {}, final ? null }:
|
2023-05-03 05:59:48 +00:00
|
|
|
let
|
2023-05-17 23:17:24 +00:00
|
|
|
lib = pkgs.lib;
|
|
|
|
unpatched = pkgs;
|
2023-05-03 08:16:46 +00:00
|
|
|
|
2023-06-26 01:25:46 +00:00
|
|
|
pythonPackagesOverlayFor = pkgs: py-final: py-prev: import ./python-packages {
|
2023-05-03 08:16:46 +00:00
|
|
|
inherit (py-final) callPackage;
|
2023-06-26 01:25:46 +00:00
|
|
|
inherit pkgs;
|
2023-05-03 08:16:46 +00:00
|
|
|
};
|
2023-05-23 09:44:05 +00:00
|
|
|
final' = if final != null then final else pkgs.appendOverlays [(_: _: sane)];
|
2023-05-17 23:17:24 +00:00
|
|
|
sane = with final'; {
|
2023-05-23 09:44:05 +00:00
|
|
|
sane-data = import ../modules/data { inherit lib sane-lib; };
|
2023-05-17 23:17:24 +00:00
|
|
|
sane-lib = import ../modules/lib final';
|
2023-05-03 05:59:48 +00:00
|
|
|
|
|
|
|
### ADDITIONAL PACKAGES
|
2023-06-01 21:18:32 +00:00
|
|
|
alsa-ucm-conf-sane = callPackage ./additional/alsa-ucm-conf-sane { };
|
2023-05-24 23:08:12 +00:00
|
|
|
bonsai = unpatched.bonsai or (callPackage ./additional/bonsai { });
|
2023-05-03 05:59:48 +00:00
|
|
|
bootpart-uefi-x86_64 = callPackage ./additional/bootpart-uefi-x86_64 { };
|
2023-05-03 22:29:32 +00:00
|
|
|
cargoDocsetHook = callPackage ./additional/cargo-docset/hook.nix { };
|
2023-05-03 05:59:48 +00:00
|
|
|
feeds = lib.recurseIntoAttrs (callPackage ./additional/feeds { });
|
2023-06-26 00:06:11 +00:00
|
|
|
lemoa = callPackage ./additional/lemoa { };
|
2023-06-01 21:11:18 +00:00
|
|
|
jellyfin-media-player-qt6 = callPackage ./additional/jellyfin-media-player-qt6 { };
|
2023-07-17 03:11:08 +00:00
|
|
|
firefox-extensions = lib.recurseIntoAttrs (callPackage ./additional/firefox-extensions { });
|
2023-05-03 05:59:48 +00:00
|
|
|
gopass-native-messaging-host = callPackage ./additional/gopass-native-messaging-host { };
|
2023-06-13 05:08:41 +00:00
|
|
|
gpodder-adaptive = callPackage ./additional/gpodder-adaptive { };
|
|
|
|
gpodder-adaptive-configured = callPackage ./additional/gpodder-configured {
|
2023-06-26 01:09:27 +00:00
|
|
|
gpodder = final'.gpodder-adaptive;
|
2023-06-13 05:08:41 +00:00
|
|
|
};
|
2023-05-03 05:59:48 +00:00
|
|
|
gpodder-configured = callPackage ./additional/gpodder-configured { };
|
2023-05-24 23:08:12 +00:00
|
|
|
hare-ev = unpatched.hare-ev or (callPackage ./additional/hare-ev { });
|
|
|
|
hare-json = unpatched.hare-json or (callPackage ./additional/hare-json { });
|
2023-07-09 00:32:22 +00:00
|
|
|
ldd-aarch64 = callPackage ./additional/ldd-aarch64 { };
|
2023-05-03 05:59:48 +00:00
|
|
|
lightdm-mobile-greeter = callPackage ./additional/lightdm-mobile-greeter { };
|
|
|
|
linux-megous = callPackage ./additional/linux-megous { };
|
|
|
|
mx-sanebot = callPackage ./additional/mx-sanebot { };
|
|
|
|
rtl8723cs-firmware = callPackage ./additional/rtl8723cs-firmware { };
|
2023-06-27 01:59:49 +00:00
|
|
|
# TODO: use `recurseIntoAttrs` ?
|
2023-05-03 05:59:48 +00:00
|
|
|
sane-scripts = callPackage ./additional/sane-scripts { };
|
|
|
|
static-nix-shell = callPackage ./additional/static-nix-shell { };
|
|
|
|
sublime-music-mobile = callPackage ./additional/sublime-music-mobile { };
|
2023-05-16 07:08:04 +00:00
|
|
|
sxmo-utils = callPackage ./additional/sxmo-utils { };
|
2023-05-03 05:59:48 +00:00
|
|
|
tow-boot-pinephone = callPackage ./additional/tow-boot-pinephone { };
|
2023-07-07 08:33:15 +00:00
|
|
|
tree-sitter-nix-shell = callPackage ./additional/tree-sitter-nix-shell { };
|
2023-06-18 06:38:01 +00:00
|
|
|
unftp = callPackage ./additional/unftp { };
|
2023-06-30 10:55:51 +00:00
|
|
|
xdg-terminal-exec = callPackage ./additional/xdg-terminal-exec { };
|
2023-06-14 00:32:54 +00:00
|
|
|
zecwallet-light-cli = callPackage ./additional/zecwallet-light-cli { };
|
2023-05-03 05:59:48 +00:00
|
|
|
|
|
|
|
# packages i haven't used for a while, may or may not still work
|
|
|
|
# fluffychat-moby = callPackage ./additional/fluffychat-moby { };
|
|
|
|
# fractal-latest = callPackage ./additional/fractal-latest { };
|
|
|
|
# kaiteki = callPackage ./additional/kaiteki { };
|
|
|
|
# tokodon = libsForQt5.callPackage ./additional/tokodon { };
|
|
|
|
|
|
|
|
# old rpi packages that may or may not still work
|
|
|
|
# bootpart-tow-boot-rpi-aarch64 = callPackage ./additional/bootpart-tow-boot-rpi-aarch64 { };
|
|
|
|
# bootpart-u-boot-rpi-aarch64 = callPackage ./additional/bootpart-u-boot-rpi-aarch64 { };
|
|
|
|
# tow-boot-rpi4 = callPackage ./additional/tow-boot-rpi4 { };
|
|
|
|
# patch rpi uboot with something that fixes USB HDD boot
|
|
|
|
# ubootRaspberryPi4_64bit = callPackage ./additional/ubootRaspberryPi4_64bit { };
|
|
|
|
|
|
|
|
# provided by nixpkgs patch or upstream PR
|
2023-05-24 05:52:45 +00:00
|
|
|
# i still conditionally callPackage these to make them available to external consumers (like NUR)
|
|
|
|
splatmoji = unpatched.splatmoji or (callPackage ./additional/splatmoji { });
|
2023-05-03 05:59:48 +00:00
|
|
|
|
|
|
|
|
|
|
|
### PATCHED PACKAGES
|
|
|
|
|
|
|
|
# XXX: the `inherit`s here are because:
|
|
|
|
# - pkgs.callPackage draws from the _final_ package set.
|
|
|
|
# - unpatched.XYZ draws (selectively) from the _unpatched_ package set.
|
|
|
|
# see <overlays/pkgs.nix>
|
2023-06-01 09:19:45 +00:00
|
|
|
|
|
|
|
# XXX patching this is... really costly.
|
|
|
|
# prefer to set ALSA_CONFIG_UCM2 = "${pkgs.alsa-ucm-conf-sane}/share/alsa/ucm2" if possible instead.
|
|
|
|
# alsa-project = unpatched.alsa-project.overrideScope' (sself: ssuper: {
|
2023-06-01 21:18:32 +00:00
|
|
|
# alsa-ucm-conf = sself.callPackage ./additional/alsa-ucm-conf-sane { inherit (ssuper) alsa-ucm-conf; };
|
2023-06-01 09:19:45 +00:00
|
|
|
# });
|
|
|
|
|
2023-05-03 05:59:48 +00:00
|
|
|
browserpass = callPackage ./patched/browserpass { inherit (unpatched) browserpass; };
|
|
|
|
|
2023-06-14 22:27:03 +00:00
|
|
|
cozy = callPackage ./patched/cozy { inherit (unpatched) cozy; };
|
|
|
|
|
2023-05-03 05:59:48 +00:00
|
|
|
# mozilla keeps nerfing itself and removing configuration options
|
|
|
|
firefox-unwrapped = callPackage ./patched/firefox-unwrapped { inherit (unpatched) firefox-unwrapped; };
|
|
|
|
|
2023-05-15 02:09:32 +00:00
|
|
|
gnome = unpatched.gnome.overrideScope' (gself: gsuper: {
|
|
|
|
gnome-control-center = gself.callPackage ./patched/gnome-control-center {
|
|
|
|
inherit (gsuper) gnome-control-center;
|
|
|
|
};
|
|
|
|
});
|
|
|
|
|
2023-05-03 05:59:48 +00:00
|
|
|
gocryptfs = callPackage ./patched/gocryptfs { inherit (unpatched) gocryptfs; };
|
|
|
|
|
2023-07-07 10:43:13 +00:00
|
|
|
helix = callPackage ./patched/helix { inherit (unpatched) helix; };
|
|
|
|
|
2023-05-03 05:59:48 +00:00
|
|
|
# jackett doesn't allow customization of the bind address: this will probably always be here.
|
|
|
|
jackett = callPackage ./patched/jackett { inherit (unpatched) jackett; };
|
|
|
|
|
2023-07-12 08:06:45 +00:00
|
|
|
komikku = callPackage ./patched/komikku { inherit (unpatched) komikku; };
|
|
|
|
|
2023-05-09 10:05:14 +00:00
|
|
|
lemmy-server = callPackage ./patched/lemmy-server { inherit (unpatched) lemmy-server; };
|
|
|
|
|
2023-05-15 23:30:29 +00:00
|
|
|
phoc = callPackage ./patched/phoc { inherit (unpatched) phoc; };
|
|
|
|
|
2023-05-03 05:59:48 +00:00
|
|
|
|
|
|
|
### PYTHON PACKAGES
|
2023-05-03 06:13:18 +00:00
|
|
|
pythonPackagesExtensions = (unpatched.pythonPackagesExtensions or []) ++ [
|
2023-06-26 01:25:46 +00:00
|
|
|
(pythonPackagesOverlayFor final')
|
2023-05-03 06:13:18 +00:00
|
|
|
];
|
2023-05-03 06:47:41 +00:00
|
|
|
# when this scope's applied as an overlay pythonPackagesExtensions is propagated as desired.
|
|
|
|
# but when freestanding (e.g. NUR), it never gets plumbed into the outer pkgs, so we have to do that explicitly.
|
2023-05-03 08:16:46 +00:00
|
|
|
python3 = unpatched.python3.override {
|
2023-06-26 01:25:46 +00:00
|
|
|
packageOverrides = pythonPackagesOverlayFor final';
|
2023-05-03 08:16:46 +00:00
|
|
|
};
|
2023-05-17 23:17:24 +00:00
|
|
|
};
|
|
|
|
in sane
|