pimsync: use finalAttrs pattern

such that overriding 'version' get reflected in 'pimsync version'. See 'https://todo.sr.ht/~whynothugo/pimsync/169'
This commit is contained in:
Matthieu C. 2025-03-23 21:19:14 +01:00 committed by Matthieu Coudron
parent 91c049ab2b
commit 4049f05ce9

View file

@ -10,21 +10,21 @@
nix-update-script,
}:
rustPlatform.buildRustPackage rec {
rustPlatform.buildRustPackage (finalAttrs: {
pname = "pimsync";
version = "0.4.1";
src = fetchFromSourcehut {
owner = "~whynothugo";
repo = "pimsync";
rev = "v${version}";
rev = "v${finalAttrs.version}";
hash = "sha256-EHDGiyDGNr6cPj2N2cTV0f7I9vmM/WIZTsPR1f+HFIE=";
};
useFetchCargoVendor = true;
cargoHash = "sha256-/6YjyKB/xOCTNZlKewddEaZ1ZN2PC5dQoP0A5If67MA=";
PIMSYNC_VERSION = version;
PIMSYNC_VERSION = finalAttrs.version;
nativeBuildInputs = [
pkg-config
@ -55,4 +55,4 @@ rustPlatform.buildRustPackage rec {
maintainers = [ lib.maintainers.qxrein ];
mainProgram = "pimsync";
};
}
})