summaryrefslogtreecommitdiff
path: root/pkgs/shells/fish/plugins/foreign-env/default.nix
blob: 287009acce4d85c67287971642dcca50e32acbb6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{
  bash,
  lib,
  buildFishPlugin,
  fetchFromGitHub,
}:

buildFishPlugin {
  pname = "foreign-env";
  version = "0-unstable-2023-08-23";

  src = fetchFromGitHub {
    owner = "oh-my-fish";
    repo = "plugin-foreign-env";
    rev = "7f0cf099ae1e1e4ab38f46350ed6757d54471de7";
    hash = "sha256-4+k5rSoxkTtYFh/lEjhRkVYa2S4KEzJ/IJbyJl+rJjQ=";
  };

  preInstall = ''
    sed -i -e "s|bash|${lib.getExe bash}|" functions/fenv.main.fish
  '';

  meta = {
    description = "Foreign environment interface for Fish shell";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [
      jgillich
      prince213
    ];
    platforms = with lib.platforms; unix;
  };
}