overlay: install rex autocompletion stuff

This commit is contained in:
Aaron Bieber 2023-01-12 06:25:38 -07:00
parent dd6a3dfa60
commit a8ac42c7cb
No known key found for this signature in database
2 changed files with 40 additions and 15 deletions

View File

@ -191,6 +191,7 @@ in {
git-credential-1password
arcanPackages.all-wrapped
barrier
rex
calibre
cider
cinny-desktop

View File

@ -20,8 +20,33 @@ let
};
};
in {
nixpkgs.overlays = if isUnstable then
[
nixpkgs.overlays = if isUnstable then [
(self: super: {
rex = super.rex.overrideAttrs (old: {
patches = [
(pkgs.fetchurl {
url = "https://deftly.net/rex-git.diff";
sha256 = "sha256-hLzWJydIBxAVXLTcqYFTLuWnMgPwNE6aZ+4fDN4agrM=";
})
];
nativeBuildInputs = with pkgs.perlPackages; [
ParallelForkManager
pkgs.installShellFiles
];
outputs = [ "out" ];
fixupPhase = ''
substituteInPlace ./share/rex-tab-completion.zsh \
--replace 'perl' "${pkgs.perl}/bin/perl -I ${pkgs.perlPackages.YAML}/${pkgs.perlPackages.YAML.perlModule.libPrefix}"
substituteInPlace ./share/rex-tab-completion.bash \
--replace 'perl' "${pkgs.perl}/bin/perl -I ${pkgs.perlPackages.YAML}/${pkgs.perlPackages.YAML.perlModule.libPrefix}"
installShellCompletion --name _rex --zsh ./share/rex-tab-completion.zsh
installShellCompletion --name _rex --bash ./share/rex-tab-completion.bash
'';
});
})
(self: super: {
aerc = super.aerc.overrideAttrs (old: {
patches = [
@ -33,8 +58,7 @@ in {
];
});
})
]
else [
] else [
tailscale
(self: super: {
matrix-synapse = super.matrix-synapse.overrideAttrs (old: rec {