mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-23 05:14:45 +00:00
31 lines
733 B
Nix
31 lines
733 B
Nix
{ lib, stdenv, fetchFromGitHub, apacheHttpd, python3, ncurses }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "mod_wsgi";
|
|
version = "4.9.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "GrahamDumpleton";
|
|
repo = "mod_wsgi";
|
|
rev = version;
|
|
hash = "sha256-6rRHdgdTb94kqIpWJOJOwoIsaXb/c4XY3q331GwQyf0=";
|
|
};
|
|
|
|
buildInputs = [ apacheHttpd python3 ncurses ];
|
|
|
|
postPatch = ''
|
|
substituteInPlace configure --replace '/usr/bin/lipo' 'lipo'
|
|
'';
|
|
|
|
makeFlags = [
|
|
"LIBEXECDIR=$(out)/modules"
|
|
];
|
|
|
|
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.unix;
|
|
};
|
|
}
|