Loading pkgs/by-name/wp/wp-cli/package.nix +21 −6 Original line number Diff line number Diff line { stdenv, lib, stdenv, fetchurl, formats, installShellFiles, makeWrapper, versionCheckHook, php, writeScript, nix-update, common-updater-scripts, phpIniFile ? null, }: let version = "2.10.0"; version = "2.12.0"; completion = fetchurl { url = "https://raw.githubusercontent.com/wp-cli/wp-cli/v${version}/utils/wp-completion.bash"; Loading @@ -33,7 +37,7 @@ stdenv.mkDerivation (finalAttrs: { src = fetchurl { url = "https://github.com/wp-cli/wp-cli/releases/download/v${version}/wp-cli-${version}.phar"; hash = "sha256-TGqTzsrn9JnKSB+nptbUKZyLkyFOXlMI4mdw2/02Md8="; hash = "sha256-zjTd2Dj3NR1nWQaNCXk/JnVUY7SkYQpaXAqXtoIg2Fw="; }; dontUnpack = true; Loading Loading @@ -71,9 +75,20 @@ stdenv.mkDerivation (finalAttrs: { doInstallCheck = true; installCheckPhase = '' $out/bin/wp --info nativeInstallCheckInputs = [ versionCheckHook ]; versionCheckProgram = "${placeholder "out"}/bin/wp"; versionCheckProgramArg = "--info"; passthru = { inherit completion; updateScript = writeScript "update-wp-cli" '' ${lib.getExe nix-update} version=$(nix-instantiate --eval -E "with import ./. {}; wp-cli.version or (lib.getVersion wp-cli)" | tr -d '"') ${lib.getExe' common-updater-scripts "update-source-version"} wp-cli $version --source-key=completion --ignore-same-version --ignore-same-hash ''; }; meta = { description = "Command line interface for WordPress"; Loading Loading
pkgs/by-name/wp/wp-cli/package.nix +21 −6 Original line number Diff line number Diff line { stdenv, lib, stdenv, fetchurl, formats, installShellFiles, makeWrapper, versionCheckHook, php, writeScript, nix-update, common-updater-scripts, phpIniFile ? null, }: let version = "2.10.0"; version = "2.12.0"; completion = fetchurl { url = "https://raw.githubusercontent.com/wp-cli/wp-cli/v${version}/utils/wp-completion.bash"; Loading @@ -33,7 +37,7 @@ stdenv.mkDerivation (finalAttrs: { src = fetchurl { url = "https://github.com/wp-cli/wp-cli/releases/download/v${version}/wp-cli-${version}.phar"; hash = "sha256-TGqTzsrn9JnKSB+nptbUKZyLkyFOXlMI4mdw2/02Md8="; hash = "sha256-zjTd2Dj3NR1nWQaNCXk/JnVUY7SkYQpaXAqXtoIg2Fw="; }; dontUnpack = true; Loading Loading @@ -71,9 +75,20 @@ stdenv.mkDerivation (finalAttrs: { doInstallCheck = true; installCheckPhase = '' $out/bin/wp --info nativeInstallCheckInputs = [ versionCheckHook ]; versionCheckProgram = "${placeholder "out"}/bin/wp"; versionCheckProgramArg = "--info"; passthru = { inherit completion; updateScript = writeScript "update-wp-cli" '' ${lib.getExe nix-update} version=$(nix-instantiate --eval -E "with import ./. {}; wp-cli.version or (lib.getVersion wp-cli)" | tr -d '"') ${lib.getExe' common-updater-scripts "update-source-version"} wp-cli $version --source-key=completion --ignore-same-version --ignore-same-hash ''; }; meta = { description = "Command line interface for WordPress"; Loading