nixos-config/config/workarounds/default.nix

74 lines
2.3 KiB
Nix

{
system,
pkgs,
nixpkgs,
hydra,
nixpkgs-noto-variable,
nix-packages,
...
}:
with pkgs; let
hydra-pkg = hydra.defaultPackage.${system};
noto-variable = import nixpkgs-noto-variable {inherit system;};
in {
nixpkgs.overlays = [
(self: prev: {
hydra-unstable = hydra-pkg.overrideAttrs (old: {
checkPhase = "true";
patches = [
../../extra/hydra.patch
];
});
mosh = prev.mosh.overrideAttrs (old: {
patches = [
./mosh/ssh_path.patch
./mosh/mosh-client_path.patch
./mosh/utempter_path.patch
./mosh/bash_completion_datadir.patch
];
postPatch = ''
substituteInPlace scripts/mosh.pl \
--subst-var-by ssh "${openssh}/bin/ssh" \
--subst-var-by mosh-client "$out/bin/mosh-client"
'';
version = "2022-02-04";
src = pkgs.fetchFromGitHub {
owner = "mobile-shell";
repo = "mosh";
rev = "dbe419d0e069df3fedc212d456449f64d0280c76";
sha256 = "09mvk9zxclkf4wrkkfzg0p2hx1f74gpymr0a0l3pckmk6za2n3d1";
};
});
inherit (noto-variable) noto-fonts-cjk;
inherit (nix-packages.packages.${system}) plover plover-plugins-manager regenpfeifer plover-regenpfeifer lotte-art;
kitty = prev.kitty.overrideAttrs (old: {
patches =
old.patches
++ [
../../extra/kitty.patch
];
});
fcitx5-table-other = prev.fcitx5-table-other.overrideAttrs (old: {
src = prev.fetchFromGitHub {
owner = "pontaoski";
repo = "fcitx5-table-other";
rev = "254c0aed99fd105120521629d177636ea043bf59";
sha256 = "sha256-iYFBlrHTFyesHNEOeI98DbmXSbRHVd+avmtN7Un0eok=";
};
});
gitea = prev.gitea.overrideAttrs (old: rec {
version = "1.17.0-rc1";
src = prev.fetchurl {
url = "https://github.com/go-gitea/gitea/releases/download/${version}/gitea-src-${version}.tar.gz";
sha256 = "sha256-9pu+fsU1rrfa9yOAxnh8tXDmxv4UYo5DP5azhJC0BpQ=";
};
sourceRoot = "source/gitea-src-${version}";
});
nix = prev.nix.overrideAttrs (old: rec {
postPatchPhase = ''
sed 's/getBoolAttr."allowSubstitutes", true./true/' src/libstore/parsed-derivations.cc
'';
});
})
];
}