Loading pkgs/by-name/cl/clever-tools/package.nix +19 −13 Original line number Diff line number Diff line Loading @@ -4,6 +4,7 @@ fetchFromGitHub, nodejs_18, installShellFiles, makeWrapper, stdenv, }: Loading @@ -23,21 +24,26 @@ buildNpmPackage rec { npmDepsHash = "sha256-+3/zSsO5+s1MUome3CQ1p1tN3OtWp+XE9Z6GSdDiRh8="; dontNpmBuild = true; nativeBuildInputs = [ installShellFiles makeWrapper ]; nativeBuildInputs = [ installShellFiles ]; installPhase = '' mkdir -p $out/bin $out/lib/clever-tools cp build/clever.cjs $out/lib/clever-tools/clever.cjs makeWrapperArgs = [ "--set NO_UPDATE_NOTIFIER true" ]; makeWrapper ${nodejs}/bin/node $out/bin/clever \ --add-flags "$out/lib/clever-tools/clever.cjs" \ --set NO_UPDATE_NOTIFIER true postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) '' runHook postInstall ''; postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) '' installShellCompletion --cmd clever \ --bash <($out/bin/clever --bash-autocomplete-script $out/bin/clever) \ --zsh <($out/bin/clever --zsh-autocomplete-script $out/bin/clever) '' + '' rm $out/bin/install-clever-completion rm $out/bin/uninstall-clever-completion ''; meta = with lib; { Loading Loading
pkgs/by-name/cl/clever-tools/package.nix +19 −13 Original line number Diff line number Diff line Loading @@ -4,6 +4,7 @@ fetchFromGitHub, nodejs_18, installShellFiles, makeWrapper, stdenv, }: Loading @@ -23,21 +24,26 @@ buildNpmPackage rec { npmDepsHash = "sha256-+3/zSsO5+s1MUome3CQ1p1tN3OtWp+XE9Z6GSdDiRh8="; dontNpmBuild = true; nativeBuildInputs = [ installShellFiles makeWrapper ]; nativeBuildInputs = [ installShellFiles ]; installPhase = '' mkdir -p $out/bin $out/lib/clever-tools cp build/clever.cjs $out/lib/clever-tools/clever.cjs makeWrapperArgs = [ "--set NO_UPDATE_NOTIFIER true" ]; makeWrapper ${nodejs}/bin/node $out/bin/clever \ --add-flags "$out/lib/clever-tools/clever.cjs" \ --set NO_UPDATE_NOTIFIER true postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) '' runHook postInstall ''; postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) '' installShellCompletion --cmd clever \ --bash <($out/bin/clever --bash-autocomplete-script $out/bin/clever) \ --zsh <($out/bin/clever --zsh-autocomplete-script $out/bin/clever) '' + '' rm $out/bin/install-clever-completion rm $out/bin/uninstall-clever-completion ''; meta = with lib; { Loading