popsicle: use finalAttrs pattern (#447669)

This commit is contained in:
Pol Dellaiera
2025-10-02 21:56:15 +02:00
committed by GitHub
+10 -5
View File
@@ -10,21 +10,22 @@
wrapGAppsHook3,
gdk-pixbuf,
gtk3,
versionCheckHook,
}:
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "popsicle";
version = "1.3.3";
src = fetchFromGitHub {
owner = "pop-os";
repo = "popsicle";
rev = version;
tag = finalAttrs.version;
hash = "sha256-sWQNav7odvX+peDglLHd7Jrmvhm5ddFBLBla0WK7wcE=";
};
cargoDeps = rustPlatform.fetchCargoVendor {
inherit pname version src;
inherit (finalAttrs) pname version src;
hash = "sha256-KWVX5eOewARccI+ukNfEn8Wc3He1lWXjm9E/Dl0LuM4=";
};
@@ -47,10 +48,14 @@ stdenv.mkDerivation rec {
"prefix=$(out)"
];
doInstallCheck = true;
nativeInstallCheckInputs = [ versionCheckHook ];
versionCheckProgramArg = "--version";
meta = {
description = "Multiple USB File Flasher";
homepage = "https://github.com/pop-os/popsicle";
changelog = "https://github.com/pop-os/popsicle/releases/tag/${version}";
changelog = "https://github.com/pop-os/popsicle/releases/tag/${finalAttrs.version}";
maintainers = with lib.maintainers; [
_13r0ck
figsoda
@@ -58,4 +63,4 @@ stdenv.mkDerivation rec {
license = lib.licenses.mit;
platforms = lib.platforms.linux;
};
}
})