From 1a6f3bb19d7503fae771dc558e3367b56514d25e Mon Sep 17 00:00:00 2001 From: Will Dietz Date: Wed, 30 Jan 2019 18:27:24 -0600 Subject: [PATCH] sudo-font: init at 0.37 --- pkgs/data/fonts/sudo/default.nix | 22 ++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 24 insertions(+) create mode 100644 pkgs/data/fonts/sudo/default.nix diff --git a/pkgs/data/fonts/sudo/default.nix b/pkgs/data/fonts/sudo/default.nix new file mode 100644 index 000000000000..7652f593db49 --- /dev/null +++ b/pkgs/data/fonts/sudo/default.nix @@ -0,0 +1,22 @@ +{ stdenv, fetchzip }: + +let + version = "0.37"; +in fetchzip rec { + name = "sudo-font-${version}"; + url = "https://github.com/jenskutilek/sudo-font/releases/download/v${version}/sudo.zip"; + sha256 = "16x6vs016wz6rmd4p248ri9fn35xq7r3dc8hv4w2c4rz1xl8c099"; + + postFetch = '' + mkdir -p $out/share/fonts/truetype/ + unzip -j $downloadedFile \*.ttf -d $out/share/fonts/truetype/ + ''; + meta = with stdenv.lib; { + description = "Font for programmers and command line users"; + homepage = https://www.kutilek.de/sudo-font/; + license = licenses.ofl; + maintainers = with maintainers; [ dtzWill ]; + platforms = platforms.all; + }; +} + diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index d1885595c952..86535bc0ad0d 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -15851,6 +15851,8 @@ in source-han-serif-simplified-chinese = sourceHanSerifPackages.simplified-chinese; source-han-serif-traditional-chinese = sourceHanSerifPackages.traditional-chinese; + sudo-font = callPackage ../data/fonts/sudo { }; + inherit (callPackages ../data/fonts/tai-languages { }) tai-ahom; tango-icon-theme = callPackage ../data/icons/tango-icon-theme {