mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 19:55:41 +03:00
thefuck: drop
It was pinned to python311 last summer due to two uses of the removed module 'imp'. One of the uses are fixed on the upstream master branch but is unreleased, and the second use is fixed by two separate open PRs. The author is unresponsive and has been inactive since january 2024. Rather than rebase and apply the two fixes I feel it makes more sense to drop the package.
This commit is contained in:
parent
f880c595ea
commit
fe7065bfe0
5 changed files with 5 additions and 103 deletions
|
@ -1,43 +0,0 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
|
||||
let
|
||||
prg = config.programs;
|
||||
cfg = prg.thefuck;
|
||||
|
||||
bashAndZshInitScript = ''
|
||||
eval $(${pkgs.thefuck}/bin/thefuck --alias ${cfg.alias})
|
||||
'';
|
||||
fishInitScript = ''
|
||||
${pkgs.thefuck}/bin/thefuck --alias ${cfg.alias} | source
|
||||
'';
|
||||
in
|
||||
{
|
||||
options = {
|
||||
programs.thefuck = {
|
||||
enable = lib.mkEnableOption "thefuck, an app which corrects your previous console command";
|
||||
|
||||
alias = lib.mkOption {
|
||||
default = "fuck";
|
||||
type = lib.types.str;
|
||||
|
||||
description = ''
|
||||
`thefuck` needs an alias to be configured.
|
||||
The default value is `fuck`, but you can use anything else as well.
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
environment.systemPackages = with pkgs; [ thefuck ];
|
||||
|
||||
programs.bash.interactiveShellInit = bashAndZshInitScript;
|
||||
programs.zsh.interactiveShellInit = lib.mkIf prg.zsh.enable bashAndZshInitScript;
|
||||
programs.fish.interactiveShellInit = lib.mkIf prg.fish.enable fishInitScript;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue