Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 41 lines 760 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 apacheHttpd, 6 python3, 7 ncurses, 8}: 9 10stdenv.mkDerivation rec { 11 pname = "mod_wsgi"; 12 version = "5.0.2"; 13 14 src = fetchFromGitHub { 15 owner = "GrahamDumpleton"; 16 repo = "mod_wsgi"; 17 rev = version; 18 hash = "sha256-FhOSU8/4QoWa73bNi/qkgKm3CeEEdboh2MgxgQxcYzE="; 19 }; 20 21 buildInputs = [ 22 apacheHttpd 23 python3 24 ncurses 25 ]; 26 27 postPatch = '' 28 substituteInPlace configure --replace '/usr/bin/lipo' 'lipo' 29 ''; 30 31 makeFlags = [ 32 "LIBEXECDIR=$(out)/modules" 33 ]; 34 35 meta = { 36 homepage = "https://github.com/GrahamDumpleton/mod_wsgi"; 37 description = "Host Python applications in Apache through the WSGI interface"; 38 license = lib.licenses.asl20; 39 platforms = lib.platforms.unix; 40 }; 41}