{ lib, ... }: { default = final: prev: lib.infuse prev { bruh = _: prev.callPackage ./packages/bruh.nix { }; emacsql-sqlite.__assign = prev.callPackage ./packages/emacsql-sqlite.nix { }; git-extras.__output.postPatch.__append = '' substituteInPlace bin/git-setup \ --replace 'Initial commit' 'chore: init' ''; grc.__output = { src.__assign = final.fetchFromGitHub { owner = "garabik"; repo = "grc"; rev = "4d6a51fd78ad7e19af8dd12b2a828d1807267079"; hash = "sha256-SmOZrgV0lgLryFoxADU15IKJ7jhxXar0MgbsV/z1GaE="; }; patches.__append = [ (final.fetchpatch { url = "https://patch-diff.githubusercontent.com/raw/garabik/grc/pull/214.patch"; hash = "sha256-VNr9jl5oFbFNJbGsjflwFV3oTbCzJ0lBIZA4eyeoXLY="; }) ]; }; hiccup.__assign = prev.callPackage ./packages/hiccup.nix { }; lampray.__assign = prev.callPackage ./packages/lampray.nix { }; # TODO Can this be infused? logcli.__assign = prev.grafana-loki.overrideAttrs ( _: super: { pname = "logcli"; subPackages = [ "cmd/logcli" ]; nativeBuildInputs = (super.nativeBuildInputs or [ ]) ++ [ final.installShellFiles ]; postInstall = (super.postInstall or "") + '' installShellCompletion --cmd logcli \ --bash <($out/bin/logcli --completion-script-bash) \ --zsh <($out/bin/logcli --completion-script-zsh) ''; preFixup = null; } ); myip.__assign = prev.callPackage ./packages/myip.nix { }; nixfiles.__assign = prev.callPackage ./packages/nixfiles.nix { }; nixfmt.__assign = prev.nixfmt-rfc-style; prismlauncher-unwrapped.__output.patches.__append = [ ./packages/prismlauncher-no-login.patch ]; openssl_1_0_0.__assign = prev.callPackage ./packages/openssl_1_0_0.nix { }; telegram-desktop = { __input.stdenv = final.useMoldLinker; # __output.patches.__append = [ # ./packages/telegram-no-ads.patch # ]; }; vesktop = { __input = { withMiddleClickScroll.__assign = true; withSystemVencord.__assign = true; withTTS.__assign = false; }; __output = { nativeBuildInputs.__append = [ final.imagemagick ]; patches.__append = [ ./packages/vesktop-no-anime.patch ]; postInstall.__append = '' # Remove LGBT iconography. rm -rf $out/share/icons/hicolor/* for size in 1024 128 256 32 512 64; do convert -scale $size $src/build/icon.png $size.png install -Dm644 $size.png $out/share/icons/hicolor/''${size}x''${size}/apps/vesktop.png done ''; }; }; dendrite = _: (lib.packages.fromPR 366129 "sha256-oI9Afm3azJyEz4SJJIwuzeyuH7IaiGNTSA442vFlfv4=").dendrite; }; }