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
33
pkgs/servers/http/apache-modules/mod_perl/default.nix
Normal file
33
pkgs/servers/http/apache-modules/mod_perl/default.nix
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
{ stdenv, fetchurl, apacheHttpd, perl, nixosTests }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "mod_perl";
|
||||
version = "2.0.11";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://apache/perl/${pname}-${version}.tar.gz";
|
||||
sha256 = "0x3gq4nz96y202cymgrf56n8spm7bffkd1p74dh9q3zrrlc9wana";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# Fix build on perl-5.34.0, https://github.com/Perl/perl5/issues/18617
|
||||
../../../../development/perl-modules/mod_perl2-PL_hash_seed.patch
|
||||
];
|
||||
|
||||
buildInputs = [ apacheHttpd perl ];
|
||||
buildPhase = ''
|
||||
perl Makefile.PL \
|
||||
MP_APXS=${apacheHttpd.dev}/bin/apxs
|
||||
make
|
||||
'';
|
||||
installPhase = ''
|
||||
mkdir -p $out
|
||||
make install DESTDIR=$out
|
||||
mv $out${apacheHttpd}/* $out
|
||||
mv $out${apacheHttpd.dev}/* $out
|
||||
mv $out${perl}/* $out
|
||||
rm $out/nix -rf
|
||||
'';
|
||||
|
||||
passthru.tests = nixosTests.mod_perl;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue