mirror of
https://github.com/vale981/poetry2nix
synced 2025-03-06 01:31:39 -05:00
commit
addba2d41c
1 changed files with 20 additions and 0 deletions
|
@ -1154,6 +1154,26 @@ lib.composeManyExtensions [
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
orjson =
|
||||||
|
let
|
||||||
|
getCargoHash = version: {
|
||||||
|
"3.6.7" = "1piy0b1gh56n8srzhyd1n971a6pqpgmwhr4v9a81wg0xkbva8g";
|
||||||
|
"3.6.8" = "sha256-vpfceVtYkU09xszNIihY1xbqGWieqDquxwsAmDH8jd4=";
|
||||||
|
}.${version} or null;
|
||||||
|
in
|
||||||
|
super.orjson.overridePythonAttrs (old: {
|
||||||
|
cargoDeps = pkgs.rustPlatform.fetchCargoTarball {
|
||||||
|
inherit (old) src;
|
||||||
|
name = "${old.pname}-${old.version}";
|
||||||
|
sha256 = getCargoHash old.version;
|
||||||
|
};
|
||||||
|
nativeBuildInputs = (old.nativeBuildInputs or [ ]) ++ [
|
||||||
|
pkgs.rustPlatform.cargoSetupHook
|
||||||
|
pkgs.rustPlatform.maturinBuildHook
|
||||||
|
];
|
||||||
|
buildInputs = (old.buildInputs or [ ]) ++ lib.optional pkgs.stdenv.isDarwin pkgs.libiconv;
|
||||||
|
});
|
||||||
|
|
||||||
osqp = super.osqp.overridePythonAttrs (
|
osqp = super.osqp.overridePythonAttrs (
|
||||||
old: {
|
old: {
|
||||||
nativeBuildInputs = (old.nativeBuildInputs or [ ]) ++ [ pkgs.cmake ];
|
nativeBuildInputs = (old.nativeBuildInputs or [ ]) ++ [ pkgs.cmake ];
|
||||||
|
|
Loading…
Add table
Reference in a new issue