wp-cli: 1.5.1 -> 2.0.0

This commit is contained in:
Peter Hoeg 2018-08-10 14:59:59 +08:00
parent 7d09b2912b
commit 47349c0103

View File

@ -2,11 +2,11 @@
let let
name = "wp-cli-${version}"; name = "wp-cli-${version}";
version = "1.5.1"; version = "2.0.0";
src = fetchurl { src = fetchurl {
url = "https://github.com/wp-cli/wp-cli/releases/download/v${version}/${name}.phar"; url = "https://github.com/wp-cli/wp-cli/releases/download/v${version}/${name}.phar";
sha256 = "1lnjbl6rcv32g6akj4552ncyqmbsawmx1dnbmxr0rjj7wr8484f1"; sha256 = "1s8pv8vdjwiwknpwsxc59l1zxc2np7nrp6bjd0s8jwsrv5fgjzsp";
}; };
completion = fetchurl { completion = fetchurl {
@ -36,9 +36,7 @@ in stdenv.mkDerivation rec {
inherit name version; inherit name version;
buildCommand = '' buildCommand = ''
mkdir -p $out/{bin,share/bash-completion/completions} install -Dm755 ${bin} $out/bin/wp
ln -s ${bin} $out/bin/wp
install -Dm644 ${completion} $out/share/bash-completion/completions/wp install -Dm644 ${completion} $out/share/bash-completion/completions/wp
# this is a very basic run test # this is a very basic run test