beedii: modernize (#505679)
This commit is contained in:
@@ -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
|
||||
];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user