uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
37
pkgs/development/php-packages/gnupg/default.nix
Normal file
37
pkgs/development/php-packages/gnupg/default.nix
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
{ buildPecl, lib, gpgme, file, gnupg }:
|
||||
|
||||
buildPecl {
|
||||
pname = "gnupg";
|
||||
|
||||
version = "1.5.1";
|
||||
sha256 = "sha256-qZBvRlqyNDyy8xJ+4gnHJ2Ajh0XDSHjZu8FXZIYhklI=";
|
||||
|
||||
buildInputs = [ gpgme ];
|
||||
checkInputs = [ gnupg ];
|
||||
|
||||
postPhpize = ''
|
||||
substituteInPlace configure \
|
||||
--replace '/usr/bin/file' '${file}/bin/file' \
|
||||
--replace 'SEARCH_PATH="/usr/local /usr /opt"' 'SEARCH_PATH="${gpgme.dev}"'
|
||||
'';
|
||||
|
||||
postConfigure = with lib; ''
|
||||
substituteInPlace Makefile \
|
||||
--replace 'run-tests.php' 'run-tests.php -q --offline'
|
||||
substituteInPlace tests/gnupg_res_init_file_name.phpt \
|
||||
--replace '/usr/bin/gpg' '${gnupg}/bin/gpg' \
|
||||
--replace 'string(12)' 'string(${toString (stringLength "${gnupg}/bin/gpg")})'
|
||||
substituteInPlace tests/gnupg_oo_init_file_name.phpt \
|
||||
--replace '/usr/bin/gpg' '${gnupg}/bin/gpg' \
|
||||
--replace 'string(12)' 'string(${toString (stringLength "${gnupg}/bin/gpg")})'
|
||||
'';
|
||||
|
||||
doCheck = true;
|
||||
|
||||
meta = with lib; {
|
||||
description = "PHP wrapper for GpgME library that provides access to GnuPG";
|
||||
license = licenses.bsd3;
|
||||
homepage = "https://pecl.php.net/package/gnupg";
|
||||
maintainers = with maintainers; [ taikx4 ] ++ teams.php.members;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue