fix: pyload

This commit is contained in:
2025-11-25 17:03:03 +01:00
parent 6475524d23
commit d7d3722ce7
5 changed files with 245 additions and 8 deletions

41
utils/pkgs/mini-racer.nix Normal file
View File

@@ -0,0 +1,41 @@
{ lib
, buildPythonPackage
, fetchPypi
, stdenv
, autoPatchelfHook
}:
buildPythonPackage rec {
pname = "mini-racer";
version = "0.12.4";
format = "wheel";
src = fetchPypi {
pname = "mini_racer";
inherit version format;
dist = "py3";
python = "py3";
abi = "none";
platform = "manylinux_2_31_x86_64";
hash = "sha256-aaHETQKpBpuIFoTO8VotdH/gdD3ynq3Igf2nACquX9I=";
};
nativeBuildInputs = [
autoPatchelfHook
];
buildInputs = [
stdenv.cc.cc.lib
];
# Don't strip binaries, it breaks V8
dontStrip = true;
meta = with lib; {
description = "Minimal Python wrapper for V8 JavaScript engine";
homepage = "https://github.com/bpcreech/PyMiniRacer";
license = licenses.isc;
maintainers = [ ];
platforms = [ "x86_64-linux" ];
};
}