beedii: modernize

* Use `installFonts`
* Switch to `finalAttrs`
This commit is contained in:
Kenichi Kamiya
2026-04-01 21:07:14 +09:00
parent 1de4a8e478
commit f4a031831e
+6 -9
View File
@@ -2,26 +2,23 @@
lib,
stdenvNoCC,
fetchzip,
installFonts,
gitUpdater,
}:
stdenvNoCC.mkDerivation rec {
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "beedii";
version = "1.0.0";
src = fetchzip {
url = "https://github.com/webkul/beedii/releases/download/v${version}/beedii.zip";
url = "https://github.com/webkul/beedii/releases/download/v${finalAttrs.version}/beedii.zip";
hash = "sha256-MefkmWl7LdhQiePpixKcatoIeOTlrRaO3QA9xWAxJ4Q=";
stripRoot = false;
};
installPhase = ''
runHook preInstall
sourceRoot = "${finalAttrs.src.name}/Fonts";
install -Dm444 Fonts/*.ttf -t $out/share/fonts/truetype/${pname}
runHook postInstall
'';
nativeBuildInputs = [ installFonts ];
passthru.updateScript = gitUpdater {
url = "https://github.com/webkul/beedii";
@@ -41,4 +38,4 @@ stdenvNoCC.mkDerivation rec {
kachick
];
};
}
})