mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00
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:
parent
91c049ab2b
commit
4049f05ce9
1 changed files with 4 additions and 4 deletions
|
@ -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";
|
||||
};
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue