mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-29 08:38:18 +03:00
$SOURCE_DATE_EPOCH moved to preConfigure
This commit is contained in:
parent
0385079696
commit
c4fb72cbb5
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchFromGitHub, fetchpatch, lib, runCommand
|
{ stdenv, fetchFromGitHub, fetchpatch, lib
|
||||||
, autoconf, automake, gnum4, libtool, perl, gnulib, uthash, pkgconfig, gettext
|
, autoconf, automake, gnum4, libtool, perl, gnulib, uthash, pkgconfig, gettext
|
||||||
, python, freetype, zlib, glib, libungif, libpng, libjpeg, libtiff, libxml2, pango
|
, python, freetype, zlib, glib, libungif, libpng, libjpeg, libtiff, libxml2, pango
|
||||||
, withSpiro ? false, libspiro
|
, withSpiro ? false, libspiro
|
||||||
@ -11,9 +11,6 @@ stdenv.mkDerivation rec {
|
|||||||
name = "fontforge-${version}";
|
name = "fontforge-${version}";
|
||||||
version = "20170730";
|
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 {
|
src = fetchFromGitHub {
|
||||||
owner = "fontforge";
|
owner = "fontforge";
|
||||||
repo = "fontforge";
|
repo = "fontforge";
|
||||||
@ -49,6 +46,9 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
# work-around: git isn't really used, but configuration fails without it
|
# work-around: git isn't really used, but configuration fails without it
|
||||||
preConfigure = ''
|
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)"
|
export GIT="$(type -P true)"
|
||||||
cp -r "${gnulib}" ./gnulib
|
cp -r "${gnulib}" ./gnulib
|
||||||
chmod +w -R ./gnulib
|
chmod +w -R ./gnulib
|
||||||
|
@ -25,7 +25,7 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = ''Small font tools shipped in FontForge contrib'';
|
description = ''Small font tools shipped in FontForge contrib'';
|
||||||
license = fontforge.meta.license;
|
license = licenses.bsd3;
|
||||||
maintainers = with maintainers; [ raskin ];
|
maintainers = with maintainers; [ raskin ];
|
||||||
platforms = with platforms; unix;
|
platforms = with platforms; unix;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user