tangled
alpha
login
or
join now
oppi.li
/
scientifica
16
fork
atom
tall, condensed bitmap font for geeks
16
fork
atom
overview
issues
pulls
pipelines
add nix build instructions
oppi.li
5 years ago
67a5885d
dfefca5d
+31
3 changed files
expand all
collapse all
unified
split
.gitignore
default.nix
shell.nix
+2
.gitignore
···
8
9
# ttf converter binary
10
BitsNPicas.jar
0
0
···
8
9
# ttf converter binary
10
BitsNPicas.jar
11
+
.envrc
12
+
result
+23
default.nix
···
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
···
1
+
let
2
+
pkgs = import <nixpkgs> {};
3
+
in
4
+
with pkgs;
5
+
stdenv.mkDerivation rec {
6
+
name = "scientifica";
7
+
version = "v0.1.0";
8
+
src = ./src;
9
+
buildInputs = [ fontforge python3 xorg.mkfontdir ];
10
+
11
+
buildPhase = ''
12
+
for i in ./*; do
13
+
fontforge -c 'open(argv[1]).generate(argv[2])' $i $i.otb
14
+
done
15
+
'';
16
+
installPhase = ''
17
+
fontDir="$out/share/fonts/misc"
18
+
install -m 644 -D *.otb out/* -t "$fontDir"
19
+
mkfontdir "$fontDir"
20
+
'';
21
+
}
22
+
23
+
+6
shell.nix
···
0
0
0
0
0
0
···
1
+
{ pkgs ? import <nixpkgs> {} }:
2
+
3
+
with pkgs;
4
+
mkShell {
5
+
buildInputs = [ fontforge python3 xorg.mkfontdir ];
6
+
}