nixpkgs/pkgs/servers/http/apache-modules/mod_wsgi/default.nix
R. RyanTM dcbfbb40fc mod_wsgi: 4.6.3 -> 4.6.4
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools.

This update was made based on information from https://repology.org/metapackage/mod_wsgi/versions.

These checks were done:

- built on NixOS
- Warning: no binary found that responded to help or version flags. (This warning appears even if the package isn't expected to have binaries.)
- found 4.6.4 with grep in /nix/store/q2skhgd8vwbrff24z9v979h92dwnza35-mod_wsgi-4.6.4
- directory tree listing: https://gist.github.com/aa4e38d80fddf2c367d88e0578a73fb0
2018-04-20 12:38:26 -07:00

27 lines
767 B
Nix

{ stdenv, fetchurl, apacheHttpd, python2 }:
stdenv.mkDerivation rec {
name = "mod_wsgi-${version}";
version = "4.6.4";
src = fetchurl {
url = "https://github.com/GrahamDumpleton/mod_wsgi/archive/${version}.tar.gz";
sha256 = "1hyaxr9km7cj4k6b0d6xx3bplpa8483fhyk9x802sl22m3f2vc1k";
};
buildInputs = [ apacheHttpd python2 ];
patchPhase = ''
sed -r -i -e "s|^LIBEXECDIR=.*$|LIBEXECDIR=$out/modules|" \
${if stdenv.isDarwin then "-e 's|/usr/bin/lipo|lipo|'" else ""} \
configure
'';
meta = {
homepage = https://github.com/GrahamDumpleton/mod_wsgi;
description = "Host Python applications in Apache through the WSGI interface";
license = stdenv.lib.licenses.asl20;
platforms = stdenv.lib.platforms.linux;
};
}