Commit 4049f05c authored by Matthieu C.'s avatar Matthieu C. Committed by Matthieu Coudron
Browse files

pimsync: use finalAttrs pattern

such that overriding 'version' get reflected in 'pimsync version'. See 'https://todo.sr.ht/~whynothugo/pimsync/169'
parent 91c049ab
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -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";
  };
}
})