diff options
author | Anderson Torres <torres.anderson.85@protonmail.com> | 2023-11-23 16:48:09 -0300 |
---|---|---|
committer | Anderson Torres <torres.anderson.85@protonmail.com> | 2023-11-25 20:11:49 -0300 |
commit | dbed3c605f8dd7c0272693df1a57532392c4ca36 (patch) | |
tree | fd586f889aad668132ce5406c650296bdc78e8dd /pkgs/shells/fish | |
parent | a95272e67f75b85e19b3796d99e56e9a435a2179 (diff) |
oh-my-fish: migrate to by-name
Diffstat (limited to 'pkgs/shells/fish')
-rw-r--r-- | pkgs/shells/fish/oh-my-fish/default.nix | 62 | ||||
-rw-r--r-- | pkgs/shells/fish/oh-my-fish/omf-install | 6 |
2 files changed, 0 insertions, 68 deletions
diff --git a/pkgs/shells/fish/oh-my-fish/default.nix b/pkgs/shells/fish/oh-my-fish/default.nix deleted file mode 100644 index 0801eb628347a..0000000000000 --- a/pkgs/shells/fish/oh-my-fish/default.nix +++ /dev/null @@ -1,62 +0,0 @@ -{ lib -, stdenv -, fetchFromGitHub -, fish -, runtimeShell -, substituteAll -}: - -stdenv.mkDerivation (finalAttrs: { - pname = "oh-my-fish"; - version = "unstable-2022-03-27"; - - src = fetchFromGitHub { - owner = "oh-my-fish"; - repo = "oh-my-fish"; - rev = "d428b723c8c18fef3b2a00b8b8b731177f483ad8"; - hash = "sha256-msItKEPe7uSUpDAfCfdYZjt5NyfM3KtOrLUTO9NGqlg="; - }; - - buildInputs = [ - fish - ]; - - strictDeps = true; - - dontConfigure = true; - dontBuild = true; - - installPhase = '' - runHook preInstall - - mkdir -pv $out/bin $out/share/oh-my-fish - cp -vr * $out/share/oh-my-fish - - cp -v ${substituteAll { - name = "omf-install"; - src = ./omf-install; - OMF = placeholder "out"; - inherit fish runtimeShell; - }} $out/bin/omf-install - - chmod +x $out/bin/omf-install - cat $out/bin/omf-install - - runHook postInstall - ''; - - meta = { - homepage = "https://github.com/oh-my-fish/oh-my-fish"; - description = "The Fish Shell Framework"; - longDescription = '' - Oh My Fish provides core infrastructure to allow you to install packages - which extend or modify the look of your shell. It's fast, extensible and - easy to use. - ''; - license = lib.licenses.mit; - maintainers = with lib.maintainers; [ AndersonTorres ]; - mainProgram = "omf-install"; - inherit (fish.meta) platforms; - }; -}) -# TODO: customize the omf-install script diff --git a/pkgs/shells/fish/oh-my-fish/omf-install b/pkgs/shells/fish/oh-my-fish/omf-install deleted file mode 100644 index 0b8be218e38a6..0000000000000 --- a/pkgs/shells/fish/oh-my-fish/omf-install +++ /dev/null @@ -1,6 +0,0 @@ -#!@runtimeShell@ - -@fish@/bin/fish \ - @OMF@/share/oh-my-fish/bin/install \ - --noninteractive \ - --offline=@OMF@/share/oh-my-fish |