mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 03:23:29 +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,
|
nix-update-script,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage (finalAttrs: {
|
||||||
pname = "pimsync";
|
pname = "pimsync";
|
||||||
version = "0.4.1";
|
version = "0.4.1";
|
||||||
|
|
||||||
src = fetchFromSourcehut {
|
src = fetchFromSourcehut {
|
||||||
owner = "~whynothugo";
|
owner = "~whynothugo";
|
||||||
repo = "pimsync";
|
repo = "pimsync";
|
||||||
rev = "v${version}";
|
rev = "v${finalAttrs.version}";
|
||||||
hash = "sha256-EHDGiyDGNr6cPj2N2cTV0f7I9vmM/WIZTsPR1f+HFIE=";
|
hash = "sha256-EHDGiyDGNr6cPj2N2cTV0f7I9vmM/WIZTsPR1f+HFIE=";
|
||||||
};
|
};
|
||||||
|
|
||||||
useFetchCargoVendor = true;
|
useFetchCargoVendor = true;
|
||||||
cargoHash = "sha256-/6YjyKB/xOCTNZlKewddEaZ1ZN2PC5dQoP0A5If67MA=";
|
cargoHash = "sha256-/6YjyKB/xOCTNZlKewddEaZ1ZN2PC5dQoP0A5If67MA=";
|
||||||
|
|
||||||
PIMSYNC_VERSION = version;
|
PIMSYNC_VERSION = finalAttrs.version;
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
pkg-config
|
pkg-config
|
||||||
|
@ -55,4 +55,4 @@ rustPlatform.buildRustPackage rec {
|
||||||
maintainers = [ lib.maintainers.qxrein ];
|
maintainers = [ lib.maintainers.qxrein ];
|
||||||
mainProgram = "pimsync";
|
mainProgram = "pimsync";
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue