mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 06:31:02 +00:00
29 lines
766 B
Nix
29 lines
766 B
Nix
{ lib, stdenv, fetchFromGitHub, apacheHttpd, python, ncurses }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "mod_wsgi";
|
|
version = "4.9.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "GrahamDumpleton";
|
|
repo = "mod_wsgi";
|
|
rev = version;
|
|
hash = "sha256-gaWA6m4ENYtm88hCaoqrcIooA0TBI7Kj6fU6pPShoo4=";
|
|
};
|
|
|
|
buildInputs = [ apacheHttpd python ncurses ];
|
|
|
|
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 = lib.licenses.asl20;
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
}
|