$SOURCE_DATE_EPOCH moved to preConfigure

wip/yesman
Volth 7 years ago
parent 0385079696
commit c4fb72cbb5
  1. 8
      pkgs/tools/misc/fontforge/default.nix
  2. 2
      pkgs/tools/misc/fontforge/fontforge-fonttools.nix

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, fetchpatch, lib, runCommand
{ stdenv, fetchFromGitHub, fetchpatch, lib
, autoconf, automake, gnum4, libtool, perl, gnulib, uthash, pkgconfig, gettext
, python, freetype, zlib, glib, libungif, libpng, libjpeg, libtiff, libxml2, pango
, withSpiro ? false, libspiro
@ -11,9 +11,6 @@ stdenv.mkDerivation rec {
name = "fontforge-${version}";
version = "20170730";
# The way $version propagates to $version of .pe-scripts (https://github.com/dejavu-fonts/dejavu-fonts/blob/358190f/scripts/generate.pe#L19)
SOURCE_DATE_EPOCH = lib.fileContents (runCommand "unixtime-of-${version}" {} "date -d ${version} +%s > $out");
src = fetchFromGitHub {
owner = "fontforge";
repo = "fontforge";
@ -49,6 +46,9 @@ stdenv.mkDerivation rec {
# work-around: git isn't really used, but configuration fails without it
preConfigure = ''
# The way $version propagates to $version of .pe-scripts (https://github.com/dejavu-fonts/dejavu-fonts/blob/358190f/scripts/generate.pe#L19)
export SOURCE_DATE_EPOCH=$(date -d ${version} +%s)
export GIT="$(type -P true)"
cp -r "${gnulib}" ./gnulib
chmod +w -R ./gnulib

@ -25,7 +25,7 @@ stdenv.mkDerivation rec {
meta = with stdenv.lib; {
description = ''Small font tools shipped in FontForge contrib'';
license = fontforge.meta.license;
license = licenses.bsd3;
maintainers = with maintainers; [ raskin ];
platforms = with platforms; unix;
};

Loading…
Cancel
Save