Skip to content

Commit

Permalink
fontforge: 20220308 -> 20230101
Browse files Browse the repository at this point in the history
  • Loading branch information
erictapen committed Mar 20, 2023
1 parent d384095 commit a02ac1d
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions pkgs/tools/misc/fontforge/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,28 +14,15 @@ assert withGTK -> withGUI;

stdenv.mkDerivation rec {
pname = "fontforge";
version = "20220308";
version = "20230101";

src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = version;
sha256 = "sha256-q+71PDPODl5fEEy3d1icRl+rBGY7AhH+2dMUKeBWGgI=";
sha256 = "sha256-/RYhvL+Z4n4hJ8dmm+jbA1Ful23ni2DbCRZC5A3+pP0=";
};

patches = [
# Allow installing contrib files (e.g. extras and tools).
# Taken from https://salsa.debian.org/fonts-team/fontforge/-/blob/master/debian/patches/0001-add-extra-cmake-install-rules.patch
(fetchpatch {
url = "https://salsa.debian.org/fonts-team/fontforge/raw/76bffe6ccf8ab20a0c81476a80a87ad245e2fd1c/debian/patches/0001-add-extra-cmake-install-rules.patch";
excludes = [
# Already handled upstream: https://github.com/fontforge/fontforge/commit/f97a2cd7b344ec8fcb9f8bfb908e1b6f36326d20
"contrib/cidmap/CMakeLists.txt"
];
sha256 = "iQwaGeBHUais979hGVbU2NxKozQSQkpYXjApxPuLI/4=";
})
];

# use $SOURCE_DATE_EPOCH instead of non-deterministic timestamps
postPatch = ''
find . -type f -name '*.c' -exec sed -r -i 's#\btime\(&(.+)\)#if (getenv("SOURCE_DATE_EPOCH")) \1=atol(getenv("SOURCE_DATE_EPOCH")); else &#g' {} \;
Expand Down

0 comments on commit a02ac1d

Please sign in to comment.