summary refs log tree commit diff
path: root/pkgs/data/fonts/libertine/default.nix
diff options
context:
space:
mode:
authorVolth <volth@webmaster.ms>2017-08-12 14:22:45 +0000
committerVolth <volth@webmaster.ms>2017-09-18 21:44:00 +0000
commit04dacfbf1c5b306875b8a136411e952771dc150d (patch)
tree948b23d8b450194d65e44c03684863cca9eb220a /pkgs/data/fonts/libertine/default.nix
parent38c14d71329c3fa760ea602f09b380b3cd0bdbc2 (diff)
downloadnixpkgs-04dacfbf1c5b306875b8a136411e952771dc150d.tar
nixpkgs-04dacfbf1c5b306875b8a136411e952771dc150d.tar.gz
nixpkgs-04dacfbf1c5b306875b8a136411e952771dc150d.tar.bz2
nixpkgs-04dacfbf1c5b306875b8a136411e952771dc150d.tar.lz
nixpkgs-04dacfbf1c5b306875b8a136411e952771dc150d.tar.xz
nixpkgs-04dacfbf1c5b306875b8a136411e952771dc150d.tar.zst
nixpkgs-04dacfbf1c5b306875b8a136411e952771dc150d.zip
data/fonts: make derivations fixed-outputs (group of fontforge compiled fonts)
Diffstat (limited to 'pkgs/data/fonts/libertine/default.nix')
-rw-r--r--pkgs/data/fonts/libertine/default.nix9
1 files changed, 8 insertions, 1 deletions
diff --git a/pkgs/data/fonts/libertine/default.nix b/pkgs/data/fonts/libertine/default.nix
index c69cc7ae34d..c4ef852bde3 100644
--- a/pkgs/data/fonts/libertine/default.nix
+++ b/pkgs/data/fonts/libertine/default.nix
@@ -8,11 +8,14 @@ stdenv.mkDerivation rec {
     sha256 = "0x7cz6hvhpil1rh03rax9zsfzm54bh7r4bbrq8rz673gl9h47v0v";
   };
 
-  setSourceRoot = "sourceRoot=`pwd`";
+  sourceRoot = ".";
 
   nativeBuildInputs = [ fontforge ];
 
   buildPhase = ''
+    # <nixpkgs/pkgs/build-support/setup-hooks/set-source-date-epoch-to-latest.sh> set it to mtime of ./env-vars, i.e. the current time
+    export SOURCE_DATE_EPOCH=$(stat -c '%Y' ChangeLog.txt)
+
     for i in *.sfd; do
       fontforge -lang=ff -c \
         'Open($1);
@@ -40,6 +43,10 @@ stdenv.mkDerivation rec {
     cp *.map $out/share/texmf/fonts/map
   '';
 
+  outputHashAlgo = "sha256";
+  outputHashMode = "recursive";
+  outputHash = "1mj0j0hkp8pn7jcs4pvcan6whba60bfd671g3vhx3s9kxwf7xjvr";
+
   meta = {
     description = "Linux Libertine Fonts";
     homepage = http://linuxlibertine.sf.net;