Skip to content

Commit

Permalink
Clean up nix files
Browse files Browse the repository at this point in the history
  • Loading branch information
jbaum98 committed Oct 5, 2017
1 parent a98fafa commit babefbc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 12 deletions.
9 changes: 2 additions & 7 deletions amiri.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{ stdenv, fetchurl, writeScript }:

{ stdenv, fetchurl }:
let
regular = fetchurl {
url = "https://github.com/google/fonts/raw/d1cf288b5c6a7719d9eb405bd0f47298b01367a6/ofl/amiri/Amiri-Regular.ttf";
Expand All @@ -20,16 +19,12 @@ let
url = "https://github.com/google/fonts/raw/d1cf288b5c6a7719d9eb405bd0f47298b01367a6/ofl/amiri/Amiri-BoldItalic.ttf";
sha256 = "1s3jfgnnlxb397xp2xi2lwvqnp7b2940xia5lx1gkvjmrakwl88g";
};

in
stdenv.mkDerivation rec {
in stdenv.mkDerivation rec {
name = "arimoFont";

phases = [ "installPhase" ];

installPhase = ''
pwd
echo $out
mkdir -p $out/share/fonts/
cp ${regular} $out/share/fonts/Arimo-Regular.ttf
cp ${italic} $out/share/fonts/Arimo-Italic.ttf
Expand Down
1 change: 0 additions & 1 deletion charis.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,3 @@ stdenv.mkDerivation {
cp *.ttf $out/share/fonts/
'';
}

5 changes: 1 addition & 4 deletions sbl.nix
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
{ stdenv, fetchurl }:

let
ttf = fetchurl {
url = "http://www.sbl-site.org/Fonts/SBL_Hbrw.ttf";
sha256 = "16cyrxqpnrw57qi9mr1941hl3bwlx6hdd0n20pi89ybsr7naiv4q";
};

in
stdenv.mkDerivation rec {
in stdenv.mkDerivation rec {
name = "sblFont";

phases = [ "installPhase" ];
Expand Down

0 comments on commit babefbc

Please sign in to comment.