Unverified Commit a78c0e4c authored by Aleksana's avatar Aleksana Committed by GitHub
Browse files

pineflash: Use `finalAttrs` pattern (#415752)

parents f72be405 480fd633
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -17,14 +17,14 @@
  nix-update-script,
  wayland,
}:
rustPlatform.buildRustPackage rec {
rustPlatform.buildRustPackage (finalAttrs: {
  pname = "pineflash";
  version = "0.5.5";

  src = fetchFromGitHub {
    owner = "Spagett1";
    repo = "pineflash";
    tag = version;
    tag = finalAttrs.version;
    hash = "sha256-4tcwEok36vuXbtlZNUkLNw1kHFQPBEJM/gWRhRWNLPg=";
  };

@@ -81,11 +81,11 @@ rustPlatform.buildRustPackage rec {
  meta = {
    description = "GUI tool to flash IronOS to the Pinecil V1 and V2";
    homepage = "https://github.com/Spagett1/pineflash";
    changelog = "https://github.com/Spagett1/pineflash/releases/tag/${version}";
    changelog = "https://github.com/Spagett1/pineflash/releases/tag/${finalAttrs.version}";
    license = lib.licenses.gpl2Only;
    maintainers = with lib.maintainers; [
      acuteaangle
    ];
    mainProgram = "pineflash";
  };
}
})