diff --git a/pkgs/by-name/oh/oh-my-fish/package.nix b/pkgs/by-name/oh/oh-my-fish/package.nix index b91a89c0beb1..b93eb00d7862 100644 --- a/pkgs/by-name/oh/oh-my-fish/package.nix +++ b/pkgs/by-name/oh/oh-my-fish/package.nix @@ -4,7 +4,7 @@ fetchFromGitHub, fish, runtimeShell, - substituteAll, + replaceVars, }: stdenv.mkDerivation (finalAttrs: { @@ -38,14 +38,16 @@ stdenv.mkDerivation (finalAttrs: { cp -vr * $out/share/oh-my-fish cp -v ${ - substituteAll { - name = "omf-install"; - src = ./omf-install; - omf = placeholder "out"; + replaceVars ./omf-install { inherit fish runtimeShell; + # replaced below + omf = null; } } $out/bin/omf-install + substituteInPlace $out/bin/omf-install \ + --replace-fail '@omf@' "$out" + chmod +x $out/bin/omf-install cat $out/bin/omf-install