From 57f5d6aed97a0971a9306bb08a5d6e7f325ce6e0 Mon Sep 17 00:00:00 2001 From: "Bjarki B. Harksen" Date: Sun, 17 Aug 2025 00:18:19 +0000 Subject: [PATCH] cormorant: init at 4.002 --- pkgs/by-name/co/cormorant/package.nix | 43 +++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 pkgs/by-name/co/cormorant/package.nix diff --git a/pkgs/by-name/co/cormorant/package.nix b/pkgs/by-name/co/cormorant/package.nix new file mode 100644 index 000000000000..be8f3febb4b0 --- /dev/null +++ b/pkgs/by-name/co/cormorant/package.nix @@ -0,0 +1,43 @@ +{ + lib, + stdenvNoCC, + fetchFromGitHub, + nix-update-script, +}: + +stdenvNoCC.mkDerivation (finalAttrs: { + pname = "cormorant"; + version = "4.002"; + + __structuredAttrs = true; + strictDeps = true; + + src = fetchFromGitHub { + owner = "CatharsisFonts"; + repo = "Cormorant"; + tag = "v${finalAttrs.version}"; + hash = "sha256-vYn6MV+P+YVH329NM9tfAsNG8bsgGTJtDLOgnNYRMFk="; + }; + + dontBuild = true; + + installPhase = '' + runHook preInstall + + install -m444 -Dt $out/share/fonts/truetype fonts/ttf/*.ttf + install -m444 -Dt $out/share/fonts/opentype fonts/otf/*.otf + + runHook postInstall + ''; + + passthru.updateScript = nix-update-script { }; + + meta = { + description = "Open-source display font family"; + longDescription = "Cormorant is a free display type family developed by Christian Thalmann (Catharsis Fonts)."; + homepage = "https://www.behance.net/gallery/28579883/Cormorant-an-open-source-display-font-family"; + license = lib.licenses.ofl; + platforms = lib.platforms.all; + maintainers = with lib.maintainers; [ mrbjarksen ]; + }; +})