aboutsummaryrefslogtreecommitdiff
path: root/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'default.nix')
-rw-r--r--default.nix24
1 files changed, 0 insertions, 24 deletions
diff --git a/default.nix b/default.nix
deleted file mode 100644
index 74e652c..0000000
--- a/default.nix
+++ /dev/null
@@ -1,24 +0,0 @@
1let
2 pkgs = import <nixpkgs> {};
3in
4 with pkgs;
5 stdenv.mkDerivation rec {
6 name = "scientifica";
7 version = "v2.2";
8 src = ./src;
9 buildInputs = [ fontforge python3 xorg.mkfontdir ];
10
11 buildPhase = ''
12 for i in *; do
13 p=''${i%%.*}
14 fontforge -c 'open(argv[1]).generate(argv[2])' $i "$p".otb
15 done
16 '';
17 installPhase = ''
18 fontDir="$out/share/fonts/misc"
19 install -m 644 -D *.otb out/* -t "$fontDir"
20 mkfontdir "$fontDir"
21 '';
22 }
23
24