maple-font: init at 5.5

oluceps 27eeb332 4fdec14e

+56
+53
pkgs/data/fonts/maple-font/default.nix
··· 1 + { lib 2 + , stdenv 3 + , unzip 4 + , fetchurl 5 + }: 6 + 7 + let 8 + maple-font = { pname, version, sha256, desc }: stdenv.mkDerivation 9 + rec{ 10 + 11 + inherit pname version desc; 12 + src = fetchurl { 13 + url = "https://github.com/subframe7536/Maple-font/releases/download/v${version}/${pname}.zip"; 14 + inherit sha256; 15 + }; 16 + 17 + # Work around the "unpacker appears to have produced no directories" 18 + # case that happens when the archive doesn't have a subdirectory. 19 + setSourceRoot = "sourceRoot=`pwd`"; 20 + nativeBuildInputs = [ unzip ]; 21 + installPhase = '' 22 + find . -name '*.ttf' -exec install -Dt $out/share/fonts/truetype {} \; 23 + ''; 24 + 25 + meta = with lib; { 26 + homepage = "https://github.com/subframe7536/Maple-font"; 27 + description = '' 28 + Open source ${desc} font with round corner and ligatures for IDE and command line 29 + ''; 30 + license = licenses.ofl; 31 + platforms = platforms.all; 32 + maintainers = with maintainers; [ oluceps ]; 33 + }; 34 + 35 + }; 36 + in 37 + { 38 + Mono-v5 = maple-font { 39 + pname = "MapleMono"; 40 + version = "5.5"; 41 + sha256 = "sha256-xkZ9NefjWHPjWNW8LGM8CgT2Zrg4j1evvx1K56sUzR8="; 42 + desc = "monospace"; 43 + }; 44 + Mono-NF-v5 = maple-font { 45 + pname = "MapleMono-NF"; 46 + version = "5.5"; 47 + sha256 = "sha256-cPVGuH1CSfnRvQ4ehBvOVno7CT6Popc1Nnpcn5uJoQY="; 48 + desc = "Nerd Font"; 49 + }; 50 + 51 + } 52 + 53 +
+3
pkgs/top-level/all-packages.nix
··· 4241 4241 4242 4242 mapcidr = callPackage ../tools/misc/mapcidr { }; 4243 4243 4244 + maple-mono = (callPackage ../data/fonts/maple-font { }).Mono-v5; 4245 + maple-mono-NF = (callPackage ../data/fonts/maple-font { }).Mono-NF-v5; 4246 + 4244 4247 marl = callPackage ../development/libraries/marl {}; 4245 4248 4246 4249 marlin-calc = callPackage ../tools/misc/marlin-calc {};