1 { lib, stdenv, cosmopolitan, unzip, bintools-unwrapped }:
3 stdenv.mkDerivation rec {
4 pname = "python-cosmopolitan";
7 src = cosmopolitan.dist;
9 nativeBuildInputs = [ bintools-unwrapped unzip ];
11 # slashes are significant because upstream uses o/$(MODE)/foo.o
12 buildFlags = [ "o//third_party/python" ];
13 checkTarget = "o//third_party/python/test";
14 enableParallelBuilding = true;
22 install o/third_party/python/*.com -Dt $out/bin
27 homepage = "https://justine.lol/cosmopolitan/";
28 description = "Actually Portable Python using Cosmopolitan";
29 platforms = platforms.x86_64;
30 badPlatforms = platforms.darwin;
31 license = licenses.isc;
32 maintainers = teams.cosmopolitan.members;
33 mainProgram = "python.com";