$SOURCE_DATE_EPOCH moved to preConfigure

Volth c4fb72cb 03850796

+5 -5
+4 -4
pkgs/tools/misc/fontforge/default.nix
··· 1 - { stdenv, fetchFromGitHub, fetchpatch, lib, runCommand 1 + { stdenv, fetchFromGitHub, fetchpatch, lib 2 2 , autoconf, automake, gnum4, libtool, perl, gnulib, uthash, pkgconfig, gettext 3 3 , python, freetype, zlib, glib, libungif, libpng, libjpeg, libtiff, libxml2, pango 4 4 , withSpiro ? false, libspiro ··· 10 10 stdenv.mkDerivation rec { 11 11 name = "fontforge-${version}"; 12 12 version = "20170730"; 13 - 14 - # The way $version propagates to $version of .pe-scripts (https://github.com/dejavu-fonts/dejavu-fonts/blob/358190f/scripts/generate.pe#L19) 15 - SOURCE_DATE_EPOCH = lib.fileContents (runCommand "unixtime-of-${version}" {} "date -d ${version} +%s > $out"); 16 13 17 14 src = fetchFromGitHub { 18 15 owner = "fontforge"; ··· 49 46 50 47 # work-around: git isn't really used, but configuration fails without it 51 48 preConfigure = '' 49 + # The way $version propagates to $version of .pe-scripts (https://github.com/dejavu-fonts/dejavu-fonts/blob/358190f/scripts/generate.pe#L19) 50 + export SOURCE_DATE_EPOCH=$(date -d ${version} +%s) 51 + 52 52 export GIT="$(type -P true)" 53 53 cp -r "${gnulib}" ./gnulib 54 54 chmod +w -R ./gnulib
+1 -1
pkgs/tools/misc/fontforge/fontforge-fonttools.nix
··· 25 25 26 26 meta = with stdenv.lib; { 27 27 description = ''Small font tools shipped in FontForge contrib''; 28 - license = fontforge.meta.license; 28 + license = licenses.bsd3; 29 29 maintainers = with maintainers; [ raskin ]; 30 30 platforms = with platforms; unix; 31 31 };