From 86b0dfb6d6e692114576c34910858830fd532862 Mon Sep 17 00:00:00 2001 From: Eduardo Espadeiro Date: Wed, 25 Oct 2023 15:09:21 +0100 Subject: [PATCH 1/2] maintainers: add edswordsmith --- maintainers/maintainer-list.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 83b0477c8a7c..a43ec77e070f 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -4931,6 +4931,12 @@ matrix = "@edrex:matrix.org"; name = "Eric Drechsel"; }; + edswordsmith = { + email = "eduardo.espadeiro@tecnico.ulisboa.pt"; + github = "EdSwordsmith"; + githubId = 22300113; + name = "Eduardo Espadeiro"; + }; eduarrrd = { email = "e.bachmakov@gmail.com"; github = "eduarrrd"; From effe62a77a83624c429658d757a607fc15e9a195 Mon Sep 17 00:00:00 2001 From: Eduardo Espadeiro Date: Wed, 25 Oct 2023 15:10:07 +0100 Subject: [PATCH 2/2] _0xproto: init at 1.300 --- pkgs/data/fonts/0xproto/default.nix | 31 +++++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 33 insertions(+) create mode 100644 pkgs/data/fonts/0xproto/default.nix diff --git a/pkgs/data/fonts/0xproto/default.nix b/pkgs/data/fonts/0xproto/default.nix new file mode 100644 index 000000000000..25a1fa585bc2 --- /dev/null +++ b/pkgs/data/fonts/0xproto/default.nix @@ -0,0 +1,31 @@ +{ lib +, stdenvNoCC +, fetchzip +}: +stdenvNoCC.mkDerivation rec { + pname = "0xproto"; + version = "1.300"; + + src = let + underscoreVersion = builtins.replaceStrings ["."] ["_"] version; + in + fetchzip { + url = "https://github.com/0xType/0xProto/releases/download/${version}/0xProto_${underscoreVersion}.zip"; + hash = "sha256-RanIMf9P2lFOF3kJS6jMlh/X6jttofbHSqFUJxWSqKk="; + }; + + installPhase = '' + runHook preInstall + install -Dm644 -t $out/share/fonts/opentype/ *.otf + install -Dm644 -t $out/share/fonts/truetype/ *.ttf + runHook postInstall + ''; + + meta = with lib; { + description = "Free and Open-source font for programming"; + homepage = "https://github.com/0xType/0xProto"; + license = licenses.ofl; + maintainers = [ maintainers.edswordsmith ]; + platforms = platforms.all; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index a42b5dc813b7..cdd18e6e47b4 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -29757,6 +29757,8 @@ with pkgs; office-code-pro = callPackage ../data/fonts/office-code-pro { }; + _0xproto = callPackage ../data/fonts/0xproto { }; + oldstandard = callPackage ../data/fonts/oldstandard { }; oldsindhi = callPackage ../data/fonts/oldsindhi { };