pyxel: unvendor Cargo.lock (#507159)

This commit is contained in:
dotlambda
2026-04-06 17:22:56 +00:00
committed by GitHub
2 changed files with 11 additions and 2380 deletions
-2372
View File
File diff suppressed because it is too large Load Diff
+11 -8
View File
@@ -3,6 +3,7 @@
python3Packages,
cargo,
fetchFromGitHub,
fetchpatch,
rustPlatform,
rustc,
SDL2,
@@ -20,24 +21,26 @@ python3Packages.buildPythonApplication (finalAttrs: {
hash = "sha256-+SitYe2HFA6rwqk5lipcKFdBy69zdAhw3Q+Nb0iBx6s=";
};
postPatch = ''
cp ${./Cargo.lock} crates/Cargo.lock
chmod u+w crates/Cargo.lock
'';
patches = [
(fetchpatch {
name = "add-Cargo.lock.patch";
url = "https://github.com/kitao/pyxel/commit/821286112ea0c26141aa64b25aaa076611a2a91d.patch";
excludes = [ "CHANGELOG.md" ];
hash = "sha256-XtFdtmprPKrdjFOzEsNMJjc4PpNv6KDtWX2Hes2IKe0=";
})
];
cargoRoot = "crates";
cargoDeps = rustPlatform.fetchCargoVendor {
inherit (finalAttrs)
src
patches
pname
version
cargoRoot
;
postPatch = ''
cp ${./Cargo.lock} crates/Cargo.lock
'';
hash = "sha256-UEN66yygcyOJt8fROClfBi1V5F7/I7P4j4vkPzKJ7jY=";
hash = "sha256-SGrQmGZeM2NcooDqCTO2HOXgLg7h+VvDIierDacqSFs=";
};
buildAndTestSubdir = "python";