nixpkgs/pkgs/by-name/oh/oh-my-fish/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

67 lines
1.4 KiB
Nix
Raw Normal View History

{ lib
, stdenv
, fetchFromGitHub
, fish
, runtimeShell
2023-11-23 19:38:50 +00:00
, substituteAll
}:
2022-07-07 01:46:29 +00:00
stdenv.mkDerivation (finalAttrs: {
pname = "oh-my-fish";
2022-07-07 01:46:29 +00:00
version = "unstable-2022-03-27";
src = fetchFromGitHub {
2023-11-23 19:38:50 +00:00
owner = "oh-my-fish";
repo = "oh-my-fish";
2022-07-07 01:46:29 +00:00
rev = "d428b723c8c18fef3b2a00b8b8b731177f483ad8";
hash = "sha256-msItKEPe7uSUpDAfCfdYZjt5NyfM3KtOrLUTO9NGqlg=";
};
patches = [
./001-writable-omf-path.diff
];
buildInputs = [
fish
];
2023-11-23 19:38:50 +00:00
strictDeps = true;
dontConfigure = true;
dontBuild = true;
installPhase = ''
runHook preInstall
2023-11-23 19:38:50 +00:00
mkdir -pv $out/bin $out/share/oh-my-fish
cp -vr * $out/share/oh-my-fish
2023-11-23 19:38:50 +00:00
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
2023-11-23 19:38:50 +00:00
cat $out/bin/omf-install
2022-07-07 01:46:29 +00:00
runHook postInstall
'';
2023-11-23 19:38:50 +00:00
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.
'';
2023-11-23 19:38:50 +00:00
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ ];
mainProgram = "omf-install";
2023-11-23 19:38:50 +00:00
inherit (fish.meta) platforms;
};
2022-07-07 01:46:29 +00:00
})
# TODO: customize the omf-install script