diff options
author | Artturin <Artturin@artturin.com> | 2023-07-27 01:30:53 +0300 |
---|---|---|
committer | Artturin <Artturin@artturin.com> | 2023-07-27 06:50:46 +0300 |
commit | 93f79d3d95fcc3aeb4a03fbb8f3d38fb4372b6fa (patch) | |
tree | 6be19c58e3e7a58b6c20d581780f7cdcaf7f6bfc /pkgs/development/libraries/freetype/default.nix | |
parent | c516ad1ee1c9d64d420a14439f50af51aead01bb (diff) | |
download | nixpkgs-93f79d3d95fcc3aeb4a03fbb8f3d38fb4372b6fa.tar nixpkgs-93f79d3d95fcc3aeb4a03fbb8f3d38fb4372b6fa.tar.gz nixpkgs-93f79d3d95fcc3aeb4a03fbb8f3d38fb4372b6fa.tar.bz2 nixpkgs-93f79d3d95fcc3aeb4a03fbb8f3d38fb4372b6fa.tar.lz nixpkgs-93f79d3d95fcc3aeb4a03fbb8f3d38fb4372b6fa.tar.xz nixpkgs-93f79d3d95fcc3aeb4a03fbb8f3d38fb4372b6fa.tar.zst nixpkgs-93f79d3d95fcc3aeb4a03fbb8f3d38fb4372b6fa.zip |
freetype: makeWrapper doesn't cross compile to windows
Issue #120726
Diffstat (limited to 'pkgs/development/libraries/freetype/default.nix')
-rw-r--r-- | pkgs/development/libraries/freetype/default.nix | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/development/libraries/freetype/default.nix b/pkgs/development/libraries/freetype/default.nix index ed847cb3ffe..85070966086 100644 --- a/pkgs/development/libraries/freetype/default.nix +++ b/pkgs/development/libraries/freetype/default.nix @@ -38,7 +38,8 @@ stdenv.mkDerivation (finalAttrs: { propagatedBuildInputs = [ zlib bzip2 brotli libpng ]; # needed when linking against freetype # dependence on harfbuzz is looser than the reverse dependence - nativeBuildInputs = [ pkg-config which makeWrapper ] + nativeBuildInputs = [ pkg-config which ] + ++ lib.optional (!stdenv.hostPlatform.isWindows) makeWrapper # FreeType requires GNU Make, which is not part of stdenv on FreeBSD. ++ lib.optional (!stdenv.isLinux) gnumake; @@ -63,6 +64,7 @@ stdenv.mkDerivation (finalAttrs: { postInstall = glib.flattenInclude + '' substituteInPlace $dev/bin/freetype-config \ --replace ${buildPackages.pkg-config} ${pkgsHostHost.pkg-config} + '' + lib.optionalString (!stdenv.hostPlatform.isWindows) '' wrapProgram "$dev/bin/freetype-config" \ --set PKG_CONFIG_PATH "$PKG_CONFIG_PATH:$dev/lib/pkgconfig" |