swww: use fetchCargoVendor and finalAttrs (#388539)

This commit is contained in:
Arne Keller
2025-03-09 23:32:20 +01:00
committed by GitHub
2 changed files with 5 additions and 1968 deletions
-1959
View File
File diff suppressed because it is too large Load Diff
+5 -9
View File
@@ -9,23 +9,19 @@
scdoc,
}:
rustPlatform.buildRustPackage rec {
rustPlatform.buildRustPackage (finalAttrs: {
pname = "swww";
version = "0.9.5";
src = fetchFromGitHub {
owner = "LGFae";
repo = "swww";
tag = "v${version}";
tag = "v${finalAttrs.version}";
hash = "sha256-ldy9HhIsWdtTdvtRLV3qDT80oX646BI4Q+YX5wJXbsc=";
};
cargoLock = {
lockFile = ./Cargo.lock;
outputHashes = {
"bitcode-0.6.0" = "sha256-D1Jv9k9m6m7dXjU8s4YMEMC39FOUN7Ix9SvLKhM1yh0=";
};
};
useFetchCargoVendor = true;
cargoHash = "sha256-K1ww0bOD747EDtqYkA0Dlu7cwbjYcPwSXPSqQDbTwZo=";
buildInputs = [
lz4
@@ -64,4 +60,4 @@ rustPlatform.buildRustPackage rec {
platforms = lib.platforms.linux;
mainProgram = "swww";
};
}
})