From 1b0a3444caa160202ebe8d19e56ae4b24e7f77f1 Mon Sep 17 00:00:00 2001 From: fortuneteller2k Date: Mon, 1 Feb 2021 22:26:37 +0800 Subject: [PATCH 1/2] scientifica: init at v2.1 --- pkgs/data/fonts/scientifica/default.nix | 32 +++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 34 insertions(+) create mode 100644 pkgs/data/fonts/scientifica/default.nix diff --git a/pkgs/data/fonts/scientifica/default.nix b/pkgs/data/fonts/scientifica/default.nix new file mode 100644 index 000000000000..2a2b237d5275 --- /dev/null +++ b/pkgs/data/fonts/scientifica/default.nix @@ -0,0 +1,32 @@ +{ lib, fetchurl }: + +let + version = "2.1"; +in fetchurl rec { + name = "scientifica-${version}"; + + url = "https://github.com/NerdyPepper/scientifica/releases/download/v${version}/scientifica-v${version}.tar"; + + downloadToTemp = true; + + recursiveHash = true; + + sha256 = "081faa48d6g86pacmgjqa96in72rjldavnwxq6bdq2br33h3qwrz"; + + postFetch = '' + tar xvf $downloadedFile + mkdir -p $out/share/fonts/truetype + mkdir -p $out/share/fonts/misc + cp scientifica/ttf/*.ttf $out/share/fonts/truetype + cp scientifica/otb/*.otb $out/share/fonts/misc + cp scientifica/bdf/*.bdf $out/share/fonts/misc + ''; + + meta = with lib; { + description = "Tall and condensed bitmap font for geeks"; + homepage = "https://github.com/NerdyPepper/scientifica"; + license = licenses.ofl; + platforms = platforms.all; + maintainers = with maintainers; [ fortuneteller2k ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index fb49cde2e6bb..6051e24dfada 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -20726,6 +20726,8 @@ in inter-ui = callPackage ../data/fonts/inter-ui { }; inter = callPackage ../data/fonts/inter { }; + scientifica = callPackage ../data/fonts/scientifica { }; + siji = callPackage ../data/fonts/siji { inherit (buildPackages.xorg) mkfontscale fonttosfnt; }; From 1a936f732392844fcea8631ba0ff764041375a35 Mon Sep 17 00:00:00 2001 From: fortuneteller2k Date: Mon, 1 Feb 2021 22:31:18 +0800 Subject: [PATCH 2/2] maintainers: add fortuneteller2k --- maintainers/maintainer-list.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index a6c6c547aedc..e6fdcf6c0e50 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -3159,6 +3159,12 @@ githubId = 92793; name = "Friedrich von Never"; }; + fortuneteller2k = { + email = "lythe1107@gmail.com"; + github = "fortuneteller2k"; + githubId = 20619776; + name = "fortuneteller2k"; + }; fpletz = { email = "fpletz@fnordicwalking.de"; github = "fpletz";