Skip to content

Commit

Permalink
feat(pendulum): Apply nixpkgs-fmt
Browse files Browse the repository at this point in the history
See: #1739
  • Loading branch information
bow authored and cpcloud committed Sep 27, 2024
1 parent 594db15 commit e0c4376
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions overrides/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2143,26 +2143,26 @@ lib.composeManyExtensions [
sha256 = githubHash;
};
in
lib.optionalAttrs (!old.src.isWheel or false) (
rec {
cargoRoot = "rust";
# NOTE: rustPlatform.importCargoLock would require prePatch on Cargo.lock
# since that file has its version value set to "3.0.0-beta-1"
# instead of the "3.0.0" used in the Python pyproject.toml, and
# this would cause an integrity check error when building.
cargoDeps = pkgs.rustPlatform.fetchCargoTarball {
src = "${src.out}/${cargoRoot}";
sha256 = "sha256-6cL3GXtGnmD/nruOykBRqNwXnB74sr9EEFFT0fXamp0=";
};
nativeBuildInputs = old.nativeBuildInputs or [ ] ++ [
pkgs.rustPlatform.cargoSetupHook
pkgs.rustPlatform.maturinBuildHook
];
buildInputs = old.buildInputs or [ ] ++ lib.optionals pkgs.stdenv.isDarwin [
pkgs.libiconv
];
}
)
lib.optionalAttrs (!old.src.isWheel or false) (
rec {
cargoRoot = "rust";
# NOTE: rustPlatform.importCargoLock would require prePatch on Cargo.lock
# since that file has its version value set to "3.0.0-beta-1"
# instead of the "3.0.0" used in the Python pyproject.toml, and
# this would cause an integrity check error when building.
cargoDeps = pkgs.rustPlatform.fetchCargoTarball {
src = "${src.out}/${cargoRoot}";
sha256 = "sha256-6cL3GXtGnmD/nruOykBRqNwXnB74sr9EEFFT0fXamp0=";
};
nativeBuildInputs = old.nativeBuildInputs or [ ] ++ [
pkgs.rustPlatform.cargoSetupHook
pkgs.rustPlatform.maturinBuildHook
];
buildInputs = old.buildInputs or [ ] ++ lib.optionals pkgs.stdenv.isDarwin [
pkgs.libiconv
];
}
)
)
);

Expand Down

0 comments on commit e0c4376

Please sign in to comment.