2020-08-04 01:46:48 +04:00
|
|
|
{ pkgs, config, lib, inputs, ... }:
|
2020-09-08 03:07:50 +04:00
|
|
|
let
|
2022-12-14 23:51:59 +03:00
|
|
|
inherit (pkgs.hostPlatform) system;
|
2023-01-26 02:12:00 +03:00
|
|
|
master = import inputs.nixpkgs-master {
|
2021-04-02 21:50:33 +03:00
|
|
|
config = config.nixpkgs.config;
|
|
|
|
localSystem = { inherit system; };
|
2023-01-26 02:12:00 +03:00
|
|
|
};
|
2023-06-23 18:27:46 +03:00
|
|
|
stable = import inputs.nixpkgs-stable {
|
|
|
|
config = config.nixpkgs.config;
|
|
|
|
localSystem = { inherit system; };
|
|
|
|
};
|
2024-02-01 22:47:27 +03:00
|
|
|
# nur = import inputs.nur {
|
|
|
|
# nurpkgs = import inputs.nixpkgs {
|
|
|
|
# system = "x86_64-linux";
|
|
|
|
# };
|
|
|
|
# };
|
2020-09-08 03:07:50 +04:00
|
|
|
in
|
2021-10-26 17:10:21 +03:00
|
|
|
with lib; {
|
2019-08-27 23:41:02 +04:00
|
|
|
nixpkgs.overlays = [
|
2024-02-01 22:47:27 +03:00
|
|
|
inputs.ataraxiasjel-nur.overlays.default
|
|
|
|
inputs.ataraxiasjel-nur.overlays.grub2-argon2
|
2023-06-23 18:27:46 +03:00
|
|
|
inputs.deploy-rs.overlay
|
2022-12-07 22:05:00 +03:00
|
|
|
(final: prev:
|
2023-06-14 00:27:12 +03:00
|
|
|
{
|
2023-06-16 00:46:19 +03:00
|
|
|
attic = inputs.attic.packages.${system}.attic;
|
|
|
|
attic-static = inputs.attic.packages.${system}.attic-static;
|
|
|
|
cassowary-py = inputs.cassowary.packages.${system}.cassowary;
|
2023-08-05 07:41:59 +03:00
|
|
|
devenv = inputs.devenv.packages.${system}.devenv;
|
2023-05-24 21:30:50 +03:00
|
|
|
nix-alien = inputs.nix-alien.packages.${system}.nix-alien;
|
2023-10-13 19:52:54 +03:00
|
|
|
nix-fast-build = inputs.nix-fast-build.packages.${system}.default;
|
2023-05-24 21:30:50 +03:00
|
|
|
nix-index-update = inputs.nix-alien.packages.${system}.nix-index-update;
|
|
|
|
prismlauncher = inputs.prismlauncher.packages.${system}.default;
|
2023-10-01 23:44:08 +03:00
|
|
|
xray = master.xray;
|
2023-04-15 03:20:45 +03:00
|
|
|
youtube-to-mpv = prev.callPackage ./packages/youtube-to-mpv.nix { term = config.defaultApplications.term.cmd; };
|
2023-05-24 21:30:50 +03:00
|
|
|
yt-dlp = master.yt-dlp;
|
2023-10-13 19:51:59 +03:00
|
|
|
steam = prev.steam.override {
|
2022-12-07 22:05:00 +03:00
|
|
|
extraPkgs = pkgs: with pkgs; [ mono libkrb5 keyutils ];
|
|
|
|
};
|
2023-11-11 03:16:39 +03:00
|
|
|
intel-vaapi-driver = prev.intel-vaapi-driver.override { enableHybridCodec = true; };
|
2022-08-18 18:00:14 +03:00
|
|
|
|
2023-09-16 00:52:52 +03:00
|
|
|
neatvnc = prev.neatvnc.overrideAttrs (oa: {
|
|
|
|
patches = [ ../patches/neatvnc.patch ] ++ oa.patches or [ ];
|
|
|
|
});
|
|
|
|
|
2023-06-14 00:27:12 +03:00
|
|
|
nix-direnv = inputs.nix-direnv.packages.${system}.default.override { nix = final.nix; };
|
2022-12-07 22:05:00 +03:00
|
|
|
|
|
|
|
pass-secret-service = prev.pass-secret-service.overrideAttrs (_: {
|
2022-11-21 02:53:20 +03:00
|
|
|
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
|
|
|
|
'';
|
|
|
|
});
|
2022-12-10 02:23:25 +03:00
|
|
|
|
2023-01-13 04:03:15 +03:00
|
|
|
narodmon-py = prev.writers.writePython3Bin "temp.py" {
|
|
|
|
libraries = with prev.python3Packages; [ requests ];
|
2022-12-07 02:27:22 +03:00
|
|
|
} ./packages/narodmon-py.nix;
|
2023-03-23 01:58:10 +03:00
|
|
|
|
|
|
|
yandex-taxi-py = prev.writers.writePython3 "yandex-taxi.py" {
|
|
|
|
libraries = with prev.python3Packages; [ requests ];
|
|
|
|
} ./packages/yandex-taxi-py.nix;
|
2024-06-03 04:05:33 +03:00
|
|
|
|
|
|
|
spotify-spotx = let
|
|
|
|
spotx = with prev; stdenv.mkDerivation {
|
|
|
|
pname = "spotx-bash";
|
|
|
|
version = "unstable-2023-12-15";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "SpotX-Official";
|
|
|
|
repo = "SpotX-Bash";
|
|
|
|
rev = "a0823cb2f7495f9eaf0c94194abe6d2f0ff1b58c";
|
|
|
|
hash = "sha256-qgG5m4ajlbq0G6D1Fx2x+yqxcz+OGN1zsfVDO2/koG4=";
|
|
|
|
};
|
|
|
|
dontBuild = true;
|
|
|
|
nativeBuildInputs = [ makeBinaryWrapper ];
|
|
|
|
installPhase = ''
|
|
|
|
install -Dm 755 spotx.sh $out/bin/spotx
|
|
|
|
sed -i 's/sxbLive=.\+/sxbLive=$buildVer/' $out/bin/spotx
|
|
|
|
patchShebangs $out/bin/spotx
|
|
|
|
wrapProgram $out/bin/spotx --prefix PATH : ${lib.makeBinPath [ perl unzip zip util-linux ]}
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
in prev.spotify.overrideAttrs (_oa: {
|
|
|
|
postInstall = ''
|
|
|
|
${spotx}/bin/spotx -h -P "$out/share/spotify"
|
|
|
|
rm -f "$out/share/spotify/Apps/xpui.bak" "$out/share/spotify/spotify.bak"
|
|
|
|
'';
|
|
|
|
});
|
|
|
|
spotifywm = prev.spotifywm.override { spotify = final.spotify-spotx; };
|
2020-02-05 04:30:49 +04:00
|
|
|
}
|
|
|
|
)
|
2019-08-27 23:41:02 +04:00
|
|
|
];
|
2020-02-15 03:15:10 +04:00
|
|
|
}
|