From 5ca72d3aaf187ea1ee3b756093ddb217377ce8f0 Mon Sep 17 00:00:00 2001 From: Pol Dellaiera Date: Wed, 28 Aug 2024 10:09:04 +0200 Subject: [PATCH] departure-mono: init at 1.346 --- pkgs/by-name/de/departure-mono/package.nix | 34 ++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 pkgs/by-name/de/departure-mono/package.nix diff --git a/pkgs/by-name/de/departure-mono/package.nix b/pkgs/by-name/de/departure-mono/package.nix new file mode 100644 index 000000000000..a272a79d1ba3 --- /dev/null +++ b/pkgs/by-name/de/departure-mono/package.nix @@ -0,0 +1,34 @@ +{ + lib, + stdenvNoCC, + fetchzip, +}: + +stdenvNoCC.mkDerivation (finalAttrs: { + pname = "departure-mono"; + version = "1.346"; + + src = fetchzip { + url = "https://departuremono.com/assets/DepartureMono-${finalAttrs.version}.zip"; + stripRoot = false; + hash = "sha256-xJVVtLnukcWQKVC3QiHvrfIA3W9EYt/iiphbLYT1iMg="; + }; + + installPhase = '' + runHook preInstall + + install -D -m 444 *.otf -t $out/share/fonts/otf + install -D -m 444 *.woff -t $out/share/fonts/woff + install -D -m 444 *.woff2 -t $out/share/fonts/woff2 + + runHook postInstall + ''; + + meta = { + description = "Departure Mono is a monospaced pixel font with a lo-fi technical vibe"; + homepage = "https://departuremono.com/"; + license = lib.licenses.ofl; + platforms = lib.platforms.all; + maintainers = with lib.maintainers; [ drupol ]; + }; +})