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