From 26faa80acc00b2ba331ccdcdfeff426f33a8afee Mon Sep 17 00:00:00 2001 From: Guilhem Saurel Date: Sat, 23 May 2026 18:51:03 +0200 Subject: [PATCH] marelle: init at 1.004 --- pkgs/by-name/ma/marelle/package.nix | 44 +++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 pkgs/by-name/ma/marelle/package.nix diff --git a/pkgs/by-name/ma/marelle/package.nix b/pkgs/by-name/ma/marelle/package.nix new file mode 100644 index 000000000000..86677a1b0302 --- /dev/null +++ b/pkgs/by-name/ma/marelle/package.nix @@ -0,0 +1,44 @@ +{ + lib, + stdenvNoCC, + fetchFromGitLab, + installFonts, +}: + +stdenvNoCC.mkDerivation (finalAttrs: { + pname = "marelle"; + version = "1.004"; + + outputs = [ + "out" + "webfont" + ]; + + src = fetchFromGitLab { + domain = "forge.apps.education.fr"; + owner = "marelle"; + repo = "marelle.forge.apps.education.fr"; + tag = "v${finalAttrs.version}"; + hash = "sha256-BNUNHQ7Vjh34CPMd+YG2aVc1ttg65LUKH0ToJ1VAw2U="; + }; + + # public/fonts/ duplicates fonts/webfonts/ + postPatch = '' + rm -rf public/fonts + ''; + + nativeBuildInputs = [ + installFonts + ]; + + strictDeps = true; + __structuredAttrs = true; + + meta = { + description = "Cursive font for teaching handwritting in primary school"; + homepage = "https://marelle.forge.apps.education.fr"; + license = lib.licenses.ofl; + maintainers = with lib.maintainers; [ nim65s ]; + platforms = lib.platforms.all; + }; +})