moralerspace: init at 1.1.0 (#376440)

This commit is contained in:
OTABI Tomoya
2025-01-30 09:43:17 +09:00
committed by GitHub
6 changed files with 198 additions and 0 deletions
@@ -0,0 +1,28 @@
{
lib,
stdenvNoCC,
fetchzip,
moralerspace,
}:
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "moralerspace-hw";
inherit (moralerspace) version meta;
src = fetchzip {
url = "https://github.com/yuru7/moralerspace/releases/download/v${finalAttrs.version}/MoralerspaceHW_v${finalAttrs.version}.zip";
hash = "sha256-V02Lp7bWKjUGhFJ5fOTVrk74ei0T5UtITQeHZ4OHytw=";
};
installPhase = ''
runHook preInstall
install -Dm644 *.ttf -t $out/share/fonts/moralerspace-hw
runHook postInstall
'';
passthru = {
inherit (moralerspace) updateScript;
};
})
@@ -0,0 +1,28 @@
{
lib,
stdenvNoCC,
fetchzip,
moralerspace,
}:
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "moralerspace-hwjpdoc";
inherit (moralerspace) version meta;
src = fetchzip {
url = "https://github.com/yuru7/moralerspace/releases/download/v${finalAttrs.version}/MoralerspaceHWJPDOC_v${finalAttrs.version}.zip";
hash = "sha256-rYDx3MMjxnmp/o6nRc5/bIEkwvMP9gmwm6R//3KwoLk=";
};
installPhase = ''
runHook preInstall
install -Dm644 *.ttf -t $out/share/fonts/moralerspace-hwjpdoc
runHook postInstall
'';
passthru = {
inherit (moralerspace) updateScript;
};
})
@@ -0,0 +1,28 @@
{
lib,
stdenvNoCC,
fetchzip,
moralerspace,
}:
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "moralerspace-hwnf";
inherit (moralerspace) version meta;
src = fetchzip {
url = "https://github.com/yuru7/moralerspace/releases/download/v${finalAttrs.version}/MoralerspaceHWNF_v${finalAttrs.version}.zip";
hash = "sha256-XRdDcfgwbP5g26xh9rlHRp9i//k5PdRhMExMy3ibN/4=";
};
installPhase = ''
runHook preInstall
install -Dm644 *.ttf -t $out/share/fonts/moralerspace-hwnf
runHook postInstall
'';
passthru = {
inherit (moralerspace) updateScript;
};
})
@@ -0,0 +1,28 @@
{
lib,
stdenvNoCC,
fetchzip,
moralerspace,
}:
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "moralerspace-jpdoc";
inherit (moralerspace) version meta;
src = fetchzip {
url = "https://github.com/yuru7/moralerspace/releases/download/v${finalAttrs.version}/MoralerspaceJPDOC_v${finalAttrs.version}.zip";
hash = "sha256-oeTRnDSp9sbicMmaybX7xue1u7dSpAqUv8XTOUrzEjE=";
};
installPhase = ''
runHook preInstall
install -Dm644 *.ttf -t $out/share/fonts/moralerspace-jpdoc
runHook postInstall
'';
passthru = {
inherit (moralerspace) updateScript;
};
})
@@ -0,0 +1,28 @@
{
lib,
stdenvNoCC,
fetchzip,
moralerspace,
}:
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "moralerspace-nf";
inherit (moralerspace) version meta;
src = fetchzip {
url = "https://github.com/yuru7/moralerspace/releases/download/v${finalAttrs.version}/MoralerspaceNF_v${finalAttrs.version}.zip";
hash = "sha256-zpJ6I/4WMiVfDbowcvw1JAup0RdvylJCzQbwa5qWM44=";
};
installPhase = ''
runHook preInstall
install -Dm644 *.ttf -t $out/share/fonts/moralerspace-nf
runHook postInstall
'';
passthru = {
inherit (moralerspace) updateScript;
};
})
+58
View File
@@ -0,0 +1,58 @@
{
lib,
stdenvNoCC,
fetchzip,
_experimental-update-script-combinators,
nix-update-script,
}:
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "moralerspace";
version = "1.1.0";
src = fetchzip {
url = "https://github.com/yuru7/moralerspace/releases/download/v${finalAttrs.version}/Moralerspace_v${finalAttrs.version}.zip";
hash = "sha256-sItgkidfmOPKtMx8+eaVFn8hK9cRxYShIsNXTh5dJfk=";
};
installPhase = ''
runHook preInstall
install -Dm644 *.ttf -t $out/share/fonts/moralerspace
runHook postInstall
'';
passthru.updateScript = _experimental-update-script-combinators.sequence [
(nix-update-script { })
(nix-update-script {
attrPath = "moralerspace-hw";
extraArgs = [ "--version=skip" ];
})
(nix-update-script {
attrPath = "moralerspace-hwjpdoc";
extraArgs = [ "--version=skip" ];
})
(nix-update-script {
attrPath = "moralerspace-hwnf";
extraArgs = [ "--version=skip" ];
})
(nix-update-script {
attrPath = "moralerspace-jpdoc";
extraArgs = [ "--version=skip" ];
})
(nix-update-script {
attrPath = "moralerspace-nf";
extraArgs = [ "--version=skip" ];
})
];
meta = {
description = "Composite font of Monaspace and IBM Plex Sans JP";
homepage = "https://github.com/yuru7/moralerspace";
changelog = "https://github.com/yuru7/moralerspace/releases/tag/v${finalAttrs.version}";
license = lib.licenses.ofl;
maintainers = with lib.maintainers; [ natsukium ];
platforms = lib.platforms.all;
};
})