aboutsummaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix18
1 files changed, 8 insertions, 10 deletions
diff --git a/flake.nix b/flake.nix
index cb2c04c..ee909ef 100644
--- a/flake.nix
+++ b/flake.nix
@@ -33,26 +33,23 @@
33 overlay = final: prev: rec { 33 overlay = final: prev: rec {
34 34
35 bitsnpicas = with final; pkgs.writeScriptBin "bitsnpicas" '' 35 bitsnpicas = with final; pkgs.writeScriptBin "bitsnpicas" ''
36 ${jdk}/bin/java -jar ${bitsnpicas-src}/downloads/BitsNPicas.jar 36 ${jdk}/bin/java -jar ${bitsnpicas-src}/downloads/BitsNPicas.jar "$@"
37 ''; 37 '';
38 38
39 scientifica = with final; pkgs.stdenvNoCC.mkDerivation { 39 scientifica = with final; pkgs.stdenvNoCC.mkDerivation {
40 pname = "scientifica"; 40 pname = "scientifica";
41 version = "v2.3"; 41 version = "v2.3";
42 src = ./.; 42 src = ./src;
43 43
44 buildPhase = '' 44 buildPhase = ''
45 runHook preBuild 45 runHook preBuild
46 46
47 fontforge=${pkgs.fontforge}/bin/fontforge
48 bitsnpicas=${self.packages.bitsnpicas}/bin/bitsnpicas
49
50 ff_filter() { 47 ff_filter() {
51 fontforge -c 'open(argv[1]).generate(argv[2])' "$@" 48 ${pkgs.fontforge}/bin/fontforge -c 'open(argv[1]).generate(argv[2])' "$@"
52 } 49 }
53 50
54 ttf_filter() { 51 ttf_filter() {
55 bitsnpicas convertbitmap -f ttf -o "$2" "$1" 52 ${pkgs.bitsnpicas}/bin/bitsnpicas convertbitmap -f ttf -o "$2" "$1"
56 } 53 }
57 54
58 mkdir -p $out/{ttf,otb,bdf} 55 mkdir -p $out/{ttf,otb,bdf}
@@ -68,14 +65,15 @@
68 ff_filter "$i" "$out/bdf/$file_name.bdf" 65 ff_filter "$i" "$out/bdf/$file_name.bdf"
69 done 66 done
70 67
71 # copy ligature plugins
72 cp -r $src/ligature_plugins $out/ligature_plugins
73
74 popd 68 popd
75 69
76 runHook postBuild 70 runHook postBuild
77 ''; 71 '';
78 72
73 installPhase = ''
74 true
75 '';
76
79 }; 77 };
80 78
81 }; 79 };