Skip to content

Commit

Permalink
Add temporary override for rpds-py 0.17.1
Browse files Browse the repository at this point in the history
While nix-community/poetry2nix#1502 is pending, add the override here.
  • Loading branch information
sigprof committed Feb 1, 2024
1 parent 1394050 commit efac095
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,20 @@ let
buildInputs = (old.buildInputs or []) ++ pkgs.python3.pkgs.pillow.buildInputs;
preConfigure = (old.preConfigure or "") + pkgs.python3.pkgs.pillow.preConfigure;
});
rpds-py = let
getCargoHash = version: {
"0.17.1" = "sha256-sFutrKLa2ISxtUN7hmw2P02nl4SM6Hn4yj1kkXrNWmI=";
}.${version} or (
lib.warn "Unknown rpds-py version: '${version}'. Please update getCargoHash." lib.fakeHash
);
in
super.rpds-py.overridePythonAttrs(old: {
cargoDeps = pkgs.rustPlatform.fetchCargoTarball {
inherit (old) src;
name = "${old.pname}-${old.version}";
hash = getCargoHash old.version;
};
});
qmk = super.qmk.overridePythonAttrs(old: {
# Allow QMK CLI to run "qmk" as a subprocess (the wrapper changes
# $PATH and breaks these invocations).
Expand Down

0 comments on commit efac095

Please sign in to comment.