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 git-credential-1password
arcanPackages.all-wrapped arcanPackages.all-wrapped
barrier barrier
rex
calibre calibre
cider cider
cinny-desktop cinny-desktop

View File

@ -20,21 +20,45 @@ let
}; };
}; };
in { in {
nixpkgs.overlays = if isUnstable then nixpkgs.overlays = if isUnstable then [
[ (self: super: {
(self: super: { rex = super.rex.overrideAttrs (old: {
aerc = super.aerc.overrideAttrs (old: { patches = [
patches = [ (pkgs.fetchurl {
(pkgs.fetchurl { url = "https://deftly.net/rex-git.diff";
url = sha256 = "sha256-hLzWJydIBxAVXLTcqYFTLuWnMgPwNE6aZ+4fDN4agrM=";
"https://lists.sr.ht/~rjarry/aerc-devel/%3C20221218160541.680374-1-moritz%40poldrack.dev%3E/raw"; })
sha256 = "sha256-qPRMOuPs5Pxiu2p08vGxsoO057Y1rVltPyBMbJXsH1s="; ];
}) nativeBuildInputs = with pkgs.perlPackages; [
]; ParallelForkManager
}); pkgs.installShellFiles
}) ];
]
else [ 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 = [
(pkgs.fetchurl {
url =
"https://lists.sr.ht/~rjarry/aerc-devel/%3C20221218160541.680374-1-moritz%40poldrack.dev%3E/raw";
sha256 = "sha256-qPRMOuPs5Pxiu2p08vGxsoO057Y1rVltPyBMbJXsH1s=";
})
];
});
})
] else [
tailscale tailscale
(self: super: { (self: super: {
matrix-synapse = super.matrix-synapse.overrideAttrs (old: rec { matrix-synapse = super.matrix-synapse.overrideAttrs (old: rec {