Skip to content

Commit

Permalink
oh-my-fish: revert part of #269493
Browse files Browse the repository at this point in the history
wasn't building anymore because $out was referenced from the omf-install
script
  • Loading branch information
hugolgst committed Mar 18, 2024
1 parent a3d99d0 commit 62322eb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 deletions.
6 changes: 0 additions & 6 deletions pkgs/by-name/oh/oh-my-fish/omf-install

This file was deleted.

13 changes: 7 additions & 6 deletions pkgs/by-name/oh/oh-my-fish/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,13 @@ stdenv.mkDerivation (finalAttrs: {
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
cat << EOF > $out/bin/omf-install
#!${runtimeShell}
${fish}/bin/fish \\
$out/share/oh-my-fish/bin/install \\
--noninteractive \\
--offline=$out/share/oh-my-fish
EOF
chmod +x $out/bin/omf-install
cat $out/bin/omf-install
Expand Down

0 comments on commit 62322eb

Please sign in to comment.