mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 15:33:13 +00:00
wp-cli: init at 0.23.1
This commit is contained in:
parent
cc41cb30e3
commit
94f64b16df
38
pkgs/development/tools/wp-cli/default.nix
Normal file
38
pkgs/development/tools/wp-cli/default.nix
Normal file
@ -0,0 +1,38 @@
|
||||
{ stdenv, lib, writeText, bash, fetchurl, php }:
|
||||
|
||||
let
|
||||
phpIni = writeText "wp-cli-php.ini" ''
|
||||
[Phar]
|
||||
phar.readonly = Off
|
||||
'';
|
||||
|
||||
in stdenv.mkDerivation rec {
|
||||
version = "0.23.1";
|
||||
name = "wp-cli-${version}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/wp-cli/wp-cli/releases/download/v${version}/${name}.phar";
|
||||
sha256 = "1sjai8gjsx6j82lsxq9m827bczp4ajnldk6ibj4krcisn9pjva5f";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ php ];
|
||||
|
||||
buildCommand = ''
|
||||
mkdir -p $out/bin
|
||||
|
||||
cat >$out/bin/wp <<EOF
|
||||
#! ${bash}/bin/bash -e
|
||||
exec ${php}/bin/php -c ${phpIni} -f ${src} "\$@"
|
||||
EOF
|
||||
|
||||
chmod +x $out/bin/wp
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "A command line interface for WordPress";
|
||||
maintainers = [ stdenv.lib.maintainers.peterhoeg ];
|
||||
platforms = stdenv.lib.platforms.all;
|
||||
homepage = https://wp-cli.org;
|
||||
license = stdenv.lib.licenses.mit;
|
||||
};
|
||||
}
|
@ -14561,6 +14561,8 @@ in
|
||||
|
||||
wrapFirefox = callPackage ../applications/networking/browsers/firefox/wrapper.nix { };
|
||||
|
||||
wp-cli = callPackage ../development/tools/wp-cli { };
|
||||
|
||||
retroArchCores =
|
||||
let
|
||||
cfg = config.retroarch or {};
|
||||
|
Loading…
Reference in New Issue
Block a user