nixos-config/config/workarounds/default.nix

81 lines
2.6 KiB
Nix
Raw Normal View History

2022-07-29 07:32:43 +00:00
{
system,
pkgs,
nixpkgs,
nixpkgs-noto-variable,
nix-packages,
...
2022-06-12 15:39:15 +00:00
}:
with pkgs; let
2022-07-29 07:32:43 +00:00
noto-variable = import nixpkgs-noto-variable {inherit system;};
in {
2022-01-27 16:16:42 +00:00
nixpkgs.overlays = [
2022-02-08 07:20:05 +00:00
(self: prev: {
2022-07-05 06:01:51 +00:00
hydra-unstable = nix-packages.packages.${system}.hydra;
mosh = prev.mosh.overrideAttrs (old: {
patches = [
2022-04-14 08:06:43 +00:00
./mosh/ssh_path.patch
./mosh/mosh-client_path.patch
./mosh/utempter_path.patch
./mosh/bash_completion_datadir.patch
];
2022-03-22 10:54:47 +00:00
postPatch = ''
2022-03-27 08:21:33 +00:00
substituteInPlace scripts/mosh.pl \
--subst-var-by ssh "${openssh}/bin/ssh" \
--subst-var-by mosh-client "$out/bin/mosh-client"
2022-03-04 19:35:01 +00:00
'';
version = "2022-02-04";
src = pkgs.fetchFromGitHub {
owner = "mobile-shell";
repo = "mosh";
rev = "dbe419d0e069df3fedc212d456449f64d0280c76";
sha256 = "09mvk9zxclkf4wrkkfzg0p2hx1f74gpymr0a0l3pckmk6za2n3d1";
};
});
2022-06-12 15:42:42 +00:00
inherit (noto-variable) noto-fonts-cjk;
inherit (nix-packages.packages.${system}) plover plover-plugins-manager plover-emoji plover-tapey-tape plover-yaml-dictionary lotte-art plover-machine-hid mautrix-telegram mautrix-signal;
kitty = prev.kitty.overrideAttrs (old: {
2022-06-14 08:16:59 +00:00
patches =
old.patches
++ [
../../extra/kitty.patch
];
2022-07-27 19:37:01 +00:00
installCheckPhase = "true";
});
2022-07-02 19:31:09 +00:00
nix = prev.nix.overrideAttrs (old: rec {
postPatchPhase = ''
sed 's/getBoolAttr."allowSubstitutes", true./true/' src/libstore/parsed-derivations.cc
'';
});
2022-07-29 07:32:43 +00:00
rnix-lsp = with prev;
rustPlatform.buildRustPackage rec {
pname = "rnix-lsp";
version = "0.3.0-alejandra";
src = fetchFromGitHub {
owner = "nix-community";
repo = "rnix-lsp";
# https://github.com/nix-community/rnix-lsp/pull/89
rev = "9189b50b34285b2a9de36a439f6c990fd283c9c7";
sha256 = "sha256-ZnUtvwkcz7QlAiqQxhI4qVUhtVR+thLhG3wQlle7oZg=";
};
cargoSha256 = "sha256-VhE+DspQ0IZKf7rNkERA/gD7iMzjW4TnRSnYy1gdV0s=";
cargoBuildFlags = ["--no-default-features" "--features" "alejandra"];
2022-07-29 07:41:59 +00:00
checkPhase = "true";
2022-07-29 07:32:43 +00:00
meta = with lib; {
description = "A work-in-progress language server for Nix, with syntax checking and basic completion";
license = licenses.mit;
maintainers = with maintainers; [ma27];
};
};
2022-08-08 19:37:30 +00:00
dovecot = prev.dovecot.overrideAttrs (old: rec {
2022-08-08 14:54:11 +00:00
checkPhase = "true";
installCheckPhase = "true";
});
2022-02-08 07:20:05 +00:00
})
2022-01-27 16:16:42 +00:00
];
}