Commit Graph

53 Commits

Author SHA1 Message Date
Artturin
e0464e4788 treewide: replace stdenv.is with stdenv.hostPlatform.is
In preparation for the deprecation of `stdenv.isX`.

These shorthands are not conducive to cross-compilation because they
hide the platforms.

Darwin might get cross-compilation for which the continued usage of `stdenv.isDarwin` will get in the way

One example of why this is bad and especially affects compiler packages
https://www.github.com/NixOS/nixpkgs/pull/343059

There are too many files to go through manually but a treewide should
get users thinking when they see a `hostPlatform.isX` in a place where it
doesn't make sense.

```
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv.is" "stdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv'.is" "stdenv'.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "clangStdenv.is" "clangStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "gccStdenv.is" "gccStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenvNoCC.is" "stdenvNoCC.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "inherit (stdenv) is" "inherit (stdenv.hostPlatform) is"
fd --type f "\.nix" | xargs sd --fixed-strings "buildStdenv.is" "buildStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "effectiveStdenv.is" "effectiveStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "originalStdenv.is" "originalStdenv.hostPlatform.is"
```
2024-09-25 00:04:37 +03:00
Martin Weinelt
498afdfa16 fontforge: fix build with Python 3.12
Replaces distutils usage with direct calls to the native sysconfig
module.
2024-06-24 12:18:22 +02:00
Alexis Hildebrandt
755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00
Robert Scott
3438e132dd fontforge: add patch for CVE-2024-25081 & CVE-2024-25082 2024-02-28 00:03:51 +00:00
figsoda
f1ec434848 pkgs/tools/misc: remove dead code
with the help of deadnix & nil
2023-07-13 17:37:07 +03:00
Kerstin Humm
a02ac1d2e8
fontforge: 20220308 -> 20230101 2023-03-20 18:53:43 +01:00
Artturin
f9fdf2d402 treewide: move NIX_CFLAGS_COMPILE to the env attrset
with structuredAttrs lists will be bash arrays which cannot be exported
which will be a issue with some patches and some wrappers like cc-wrapper

this makes it clearer that NIX_CFLAGS_COMPILE must be a string as lists
in env cause a eval failure
2023-02-22 21:23:04 +02:00
Alyssa Ross
8734e42bf1 fontforge: remove obsolete comment
This was added in 07d12fbef1 ("fontforge: get rid of output hash
depending on git"), to explain the line:

	  export GIT="$(type -P true)".

This line was removed in e9848d11ad ("fontforge: 20190801 -> 20200314"),
but I forgot to remove the comment.

Fixes: e9848d11ad ("fontforge: 20190801 -> 20200314")
2022-05-17 15:28:33 +00:00
Evils
69da642a5a fontforge: 20201107 -> 20220308
refactor the debian patch to apply
  still seems required to get the extra binaries

Co-authored-by: Jan Tojnar <jtojnar@gmail.com>
  (suggestion for partial applying the fetched patch)
2022-03-10 16:04:11 +01:00
Jan Tojnar
cdb1d29692 Merge branch 'staging-next' into staging 2021-08-14 14:43:16 +02:00
Kevin Cox
778525fd49 fontforge: Apply patch to avoid segfault. 2021-08-12 17:15:52 +02:00
Sandro Jäckel
10a0b42996
fontforge: remove ? null on darwin packages and format a little 2021-08-12 11:30:23 +02:00
Alyssa Ross
6e3b5fd046 libungif: remove in favour of giflib
libungif was merged into giflib in 2006, and hasn't been updated
since.  All non-broken packages still using it build fine with giflib.

See <http://giflib.sourceforge.net/history.html>.
2021-04-16 14:06:10 +00:00
Jan Tojnar
7d01c1e6d5 fontforge-fonttools: Install all tools
Since CMake port, the contrib files are not installed. Let's use a Debian patch to install them.
2021-04-06 17:52:07 +02:00
Justin Humm
a0800919f1 fontforge: 20200314 -> 20201107
also use fetchFromGitHub for getting the source.
2021-01-23 23:47:27 +01:00
Ben Siraphob
76f93cc731 pkgs/tools: pkgconfig -> pkg-config 2021-01-16 23:49:59 -08:00
Ben Siraphob
8c5d37129f pkgs/tools: stdenv.lib -> lib 2021-01-15 17:12:36 +07:00
Niklas Hambüchen
c4c812567f fontforge: Fix uninterpolated CMAKE_INSTALL_PREFIX in RPATH.
This was introduced in https://github.com/NixOS/nixpkgs/pull/89583
and fixed upstream with a master-only patch in
https://github.com/fontforge/fontforge/pull/4232.

Found via
https://github.com/nh2/static-haskell-nix/pull/98#issuecomment-665395399.
2020-07-30 01:40:17 +02:00
Alyssa Ross
8a74399de3
fontforge: introduce withGUI option
It was unintuitive that the withGTK option controlled whether a
fontforge GUI was enabled at all, since fontforge supports multiple
GUIs (a GTK one and an X11 one -- confusingly the X11 one still
requires GTK).

With the new withGUI option, it is possible to build the X11 GUI by
setting withGTK to false and withGUI to true.  I haven't added an
attribute for this configuration because I expect it to be pretty
obsure -- my rationale for adding this option was code clarity rather
than utility.
2020-06-06 04:51:20 +00:00
Alyssa Ross
e9848d11ad
fontforge: 20190801 -> 20200314
This fixes the failing build.

Build system changed to cmake.
2020-06-06 04:51:01 +00:00
Michael Reilly
84cf00f980
treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
Justin Humm
4496f8f4b8 fontforge: 20190413 -> 20190801
- Init libuninameslist at 20190701 as it is a new dependency to fontforge
- Remove gnulib, as it is not used anymore
- Remove a non-applying patch
- Add myself as maintainer
2020-02-16 08:47:34 +01:00
Robin Gloster
e5ded57aab
treewide: NIX_CFLAGS_COMPILE -> string 2019-12-31 00:05:53 +01:00
R. RyanTM
31e31aa206 fontforge: 20190317 -> 20190413
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/fontforge/versions
2019-05-01 11:23:44 +02:00
Will Dietz
867564a73d fontforge: 20170730 -> 20190317
https://github.com/fontforge/fontforge/releases/tag/20190317

* add zmq (collab), woff2 (format), readline (cli)
* "just in case", keep determinism patching
* fontforge-fonttools: replace with override enabling tools
  Don't see any reason to not include by default,
  so this might make more sense as an alias instead.
2019-03-26 18:22:00 -05:00
volth
52f53c69ce pkgs/*: remove unreferenced function arguments 2018-07-21 02:48:04 +00:00
Jan Malakhovski
7438083a4d tree-wide: disable doCheck and doInstallCheck where it fails (the trivial part) 2018-04-25 04:18:46 +00:00
John Ericson
ed14223f8c treewide: Manual fix more pkg-config build-inputs 2017-09-21 15:49:54 -04:00
Daiderd Jordan
2317a07fbb
fontforge-fonttools: use $CC 2017-09-09 23:59:04 +02:00
Volth
97db36a707 use sed instead of patch 2017-08-15 18:41:56 +00:00
Volth
c4fb72cbb5 $SOURCE_DATE_EPOCH moved to preConfigure 2017-08-13 16:13:19 +00:00
Volth
0385079696 fontforge: 20160404 -> 20170730 + support reproducible builds 2017-08-12 22:38:57 +00:00
lprndn
f259fa6e91 Merge branch 'master' into lprndn_Nixpkgs 2017-04-03 21:37:11 +02:00
Michael Raskin
f9add54f28 fontforge-fonttools: init at 20160404 2017-03-23 15:10:52 +01:00
Lprndn
4cd7b284e8 fontforge-gtk: Add support for libspiro.
Add Spiro toolkit in fontforge-gtk for designing fonts.
libspiro: Init at c26afeb.
2017-02-17 16:39:50 +01:00
Vladimír Čunát
07d12fbef1 fontforge: get rid of output hash depending on git
... to avoid git changes being mass rebuilds.
Thanks to Mic92 for the solution idea.
See discussion under: https://github.com/NixOS/nixpkgs/pull/19248
2016-10-05 19:04:03 +02:00
Dmitry Kalinkin
1d4ed38751 fontforge: prevent configure from picking up xquartz installation 2016-09-04 16:33:27 -04:00
Dmitry Kalinkin
810787238d fontforge: enable Carbon which is required on OSX 2016-09-03 23:38:23 -04:00
Vladimír Čunát
3f80ecfc79 fontforge: build the non-gui version without fontconfig
(in build-time closure)
2016-08-29 22:27:34 +02:00
Matthew Bauer
07ca8027d9 fontforge-gtk: fix darwin build 2016-08-16 19:25:41 +00:00
Nikolay Amiantov
9a1d6fe701 fontforge: 20150824 -> 20160404 2016-06-11 02:43:44 +03:00
Yuri Albuquerque
5cfeedc914 fontforge: needs pango on Linux, too 2015-12-27 01:33:06 -04:00
Cillian de Róiste
e187ecb65c fontforge-gtk: update from 20141230 to 20150824 2015-10-25 18:52:49 +01:00
Spencer Whitt
2f63e26d04 fontforge: fix Darwin build 2015-04-01 17:00:04 -04:00
Vladimír Čunát
f9c59ca168 fontforge: large update with large changes implied
- Things didn't work very well before, as libs were only dlopened and
  not found. Fixes #5716.
- Newer releases need autotools to build (and git), leading to some bloat.
- Also, more things are installed by default, increasing the output size.
2015-01-12 13:43:30 +01:00
Michael Raskin
bc851612c9 A kludge to avoid removal of zlib from RPATH -- needed for LilyPond build
svn path=/nixpkgs/trunk/; revision=32046
2012-02-06 05:49:27 +00:00
Yury G. Kudryashov
8c1f88549d fontforge-20100222
svn path=/nixpkgs/trunk/; revision=31902
2012-01-28 09:04:48 +00:00
Eelco Dolstra
ee4fe6ea84 * Drop pkgsOverriden.
svn path=/nixpkgs/trunk/; revision=22823
2010-07-30 12:10:24 +00:00
Michael Raskin
9a317b1f3e Update fontforge
svn path=/nixpkgs/trunk/; revision=15461
2009-05-06 07:28:29 +00:00
Eelco Dolstra
31bc21974d * Purity fix in fontforge: don't look for /usr/include/libxml.
svn path=/nixpkgs/trunk/; revision=11288
2008-03-26 12:57:30 +00:00