aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--default.nix24
-rw-r--r--shell.nix6
2 files changed, 0 insertions, 30 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
diff --git a/shell.nix b/shell.nix
deleted file mode 100644
index d806c60..0000000
--- a/shell.nix
+++ /dev/null
@@ -1,6 +0,0 @@
1{ pkgs ? import <nixpkgs> {} }:
2
3with pkgs;
4mkShell {
5 buildInputs = [ fontforge-gtk fontforge python3 xorg.mkfontdir adoptopenjdk-bin ];
6}