Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 23.05 32 lines 818 B view raw
1{ lib, stdenv, fetchFromGitHub, apacheHttpd, python3, libintl }: 2 3stdenv.mkDerivation rec { 4 pname = "mod_python"; 5 version = "unstable-2022-10-18"; 6 7 src = fetchFromGitHub { 8 owner = "grisha"; 9 repo = pname; 10 rev = "d066b07564d2194839eceb535485eb1ba0c292d8"; 11 hash = "sha256-EH8wrXqUAOFWyPKfysGeiIezgrVc789RYO4AHeSA6t4="; 12 }; 13 14 patches = [ ./install.patch ]; 15 16 installFlags = [ 17 "LIBEXECDIR=$(out)/modules" 18 "BINDIR=$(out)/bin" 19 ]; 20 21 passthru = { inherit apacheHttpd; }; 22 23 buildInputs = [ apacheHttpd python3 ] 24 ++ lib.optional stdenv.isDarwin libintl; 25 26 meta = with lib; { 27 homepage = "https://modpython.org/"; 28 description = "An Apache module that embeds the Python interpreter within the server"; 29 platforms = platforms.unix; 30 maintainers = with maintainers; [ ]; 31 }; 32}