95 lines
3.3 KiB
Nix
95 lines
3.3 KiB
Nix
inputs: final: prev:
|
|
let
|
|
inherit inputs;
|
|
inherit (prev.hostPlatform) system;
|
|
master = import inputs.nixpkgs-master {
|
|
config = {
|
|
allowUnfree = true;
|
|
};
|
|
localSystem = { inherit system; };
|
|
};
|
|
in
|
|
{
|
|
# attic-client = inputs.attic.packages.${system}.attic;
|
|
# attic-server = inputs.attic.packages.${system}.attic-server;
|
|
# cassowary-py = inputs.cassowary.packages.${system}.cassowary;
|
|
heroic = (prev.heroic.override { extraPkgs = [ final.umu-launcher ]; });
|
|
intel-vaapi-driver = prev.intel-vaapi-driver.override { enableHybridCodec = true; };
|
|
# nix-alien = inputs.nix-alien.packages.${system}.nix-alien;
|
|
# nix-direnv = inputs.nix-direnv.packages.${system}.default.override { nix = final.nix; };
|
|
# nix-fast-build = inputs.nix-fast-build.packages.${system}.default;
|
|
# nix-index-update = inputs.nix-alien.packages.${system}.nix-index-update;
|
|
osu-lazer = master.osu-lazer;
|
|
osu-lazer-bin = master.osu-lazer-bin;
|
|
# prismlauncher = inputs.prismlauncher.packages.${system}.prismlauncher.override {
|
|
# jdks = [ final.temurin-bin ];
|
|
# };
|
|
xray = master.xray;
|
|
# youtube-to-mpv = prev.callPackage ./packages/youtube-to-mpv.nix { term = config.defaultApplications.term.cmd; };
|
|
# yt-archivist = prev.callPackage ./packages/yt-archivist { };
|
|
yt-dlp = master.yt-dlp;
|
|
sing-box = master.sing-box;
|
|
steam = prev.steam.override {
|
|
extraPkgs =
|
|
pkgs:
|
|
builtins.attrValues {
|
|
inherit (pkgs)
|
|
mono
|
|
libkrb5
|
|
keyutils
|
|
;
|
|
};
|
|
};
|
|
wine = prev.wineWow64Packages.stagingFull;
|
|
|
|
# Move modprobed config to subdir. Easier to use with impermanence
|
|
modprobed-db = prev.modprobed-db.overrideAttrs (oa: {
|
|
postPatch =
|
|
(oa.postPatch or "")
|
|
+ ''
|
|
substituteInPlace ./common/modprobed-db.in \
|
|
--replace-fail "/modprobed-db.conf" "/modprobed-db/modprobed-db.conf"
|
|
substituteInPlace ./common/modprobed-db.skel \
|
|
--replace-fail "/.config" "/.config/modprobed-db"
|
|
'';
|
|
});
|
|
|
|
# TODO: remove after ver > v0.47.2
|
|
hyprland =
|
|
if prev.hyprland.version == "0.47.2" then
|
|
(prev.hyprland.overrideAttrs (oa: {
|
|
patches = (oa.patches or [ ]) ++ [
|
|
./patches/hyprland-tablet.patch
|
|
];
|
|
}))
|
|
else
|
|
prev.hyprland;
|
|
|
|
pass-secret-service = prev.pass-secret-service.overrideAttrs (_: {
|
|
installCheckPhase = null;
|
|
postInstall = ''
|
|
mkdir -p $out/share/{dbus-1/services,xdg-desktop-portal/portals}
|
|
cat > $out/share/dbus-1/services/org.freedesktop.secrets.service << EOF
|
|
[D-BUS Service]
|
|
Name=org.freedesktop.secrets
|
|
Exec=/run/current-system/sw/bin/systemctl --user start pass-secret-service
|
|
EOF
|
|
cp $out/share/dbus-1/services/{org.freedesktop.secrets.service,org.freedesktop.impl.portal.Secret.service}
|
|
cat > $out/share/xdg-desktop-portal/portals/pass-secret-service.portal << EOF
|
|
[portal]
|
|
DBusName=org.freedesktop.secrets
|
|
Interfaces=org.freedesktop.impl.portal.Secrets
|
|
UseIn=gnome
|
|
EOF
|
|
'';
|
|
});
|
|
|
|
# narodmon-py = prev.writers.writePython3Bin "temp.py" {
|
|
# libraries = with prev.python3Packages; [ requests ];
|
|
# } ./packages/narodmon-py.nix;
|
|
|
|
# yandex-taxi-py = prev.writers.writePython3 "yandex-taxi.py" {
|
|
# libraries = with prev.python3Packages; [ requests ];
|
|
# } ./packages/yandex-taxi-py.nix;
|
|
}
|