wp-cli: 2.2.0 -> 2.4.0

This commit is contained in:
Peter Hoeg 2020-04-02 16:33:25 +08:00 committed by Alyssa Ross
parent 3a4f0fa4ec
commit 0cef04976f

View File

@ -1,10 +1,9 @@
{ stdenv, lib, fetchurl, writeText, php, makeWrapper }: { stdenv, lib, fetchurl, writeText, php, makeWrapper }:
let let
version = "2.2.0"; version = "2.4.0";
completion = fetchurl { completion = fetchurl {
url = "https://raw.githubusercontent.com/wp-cli/wp-cli/v${version}/utils/wp-completion.bash"; url = "https://raw.githubusercontent.com/wp-cli/wp-cli/v${version}/utils/wp-completion.bash";
sha256 = "15d330x6d3fizrm6ckzmdknqg6wjlx5fr87bmkbd5s6a1ihs0g24"; sha256 = "15d330x6d3fizrm6ckzmdknqg6wjlx5fr87bmkbd5s6a1ihs0g24";
}; };
@ -15,14 +14,14 @@ let
[Phar] [Phar]
phar.readonly = Off phar.readonly = Off
''; '';
in
in stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "wp-cli"; pname = "wp-cli";
inherit version; inherit version;
src = fetchurl { src = fetchurl {
url = "https://github.com/wp-cli/wp-cli/releases/download/v${version}/${pname}-${version}.phar"; url = "https://github.com/wp-cli/wp-cli/releases/download/v${version}/${pname}-${version}.phar";
sha256 = "0s03jbsjwvkcbyss6rvpgw867hiwvk5p4n1qznkghyzi94j8mvki"; sha256 = "0h5mjxrw4z3648v4wb4pvapz2a1mlmbszgggg4b7bvrrxn3cr78k";
}; };
nativeBuildInputs = [ makeWrapper ]; nativeBuildInputs = [ makeWrapper ];
@ -45,9 +44,9 @@ in stdenv.mkDerivation rec {
meta = with lib; { meta = with lib; {
description = "A command line interface for WordPress"; description = "A command line interface for WordPress";
homepage = https://wp-cli.org; homepage = "https://wp-cli.org";
license = licenses.mit; license = licenses.mit;
maintainers = with maintainers; [ peterhoeg ]; maintainers = with maintainers; [ peterhoeg ];
platforms = platforms.all; platforms = platforms.all;
}; };
} }