at 24.05-pre 30 lines 733 B view raw
1{ lib, stdenv, fetchFromGitHub, apacheHttpd, python3, ncurses }: 2 3stdenv.mkDerivation rec { 4 pname = "mod_wsgi"; 5 version = "4.9.4"; 6 7 src = fetchFromGitHub { 8 owner = "GrahamDumpleton"; 9 repo = "mod_wsgi"; 10 rev = version; 11 hash = "sha256-6rRHdgdTb94kqIpWJOJOwoIsaXb/c4XY3q331GwQyf0="; 12 }; 13 14 buildInputs = [ apacheHttpd python3 ncurses ]; 15 16 postPatch = '' 17 substituteInPlace configure --replace '/usr/bin/lipo' 'lipo' 18 ''; 19 20 makeFlags = [ 21 "LIBEXECDIR=$(out)/modules" 22 ]; 23 24 meta = { 25 homepage = "https://github.com/GrahamDumpleton/mod_wsgi"; 26 description = "Host Python applications in Apache through the WSGI interface"; 27 license = lib.licenses.asl20; 28 platforms = lib.platforms.unix; 29 }; 30}