Skip to content

Commit 8b14147

Browse files
committed
Revert fixes for musl (since we can't build static Gtk)
1 parent e576858 commit 8b14147

File tree

2 files changed

+4
-21
lines changed

2 files changed

+4
-21
lines changed

builder/make-config-files.nix

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{ pkgs, stdenv, lib, haskellLib, ghc, nonReinstallablePkgs, runCommand, writeText, writeScript }@defaults:
1+
{ stdenv, lib, haskellLib, ghc, nonReinstallablePkgs, runCommand, writeText, writeScript }@defaults:
22

33
{ identifier, component, fullName, flags ? {}, needsProfiling ? false, enableDWARF ? false, chooseDrv ? drv: drv, nonReinstallablePkgs ? defaults.nonReinstallablePkgs }:
44

@@ -121,26 +121,7 @@ let
121121
fi
122122
fi
123123
done
124-
${ # Help haskell.nix find .gir and .typelib files when compiling for musl
125-
lib.optionalString stdenv.hostPlatform.isMusl ''
126124
127-
for l in "''${pkgsHostTarget[@]}"; do
128-
if [ -d "$l/share/gir-1.0" ]; then
129-
HASKELL_GI_GIR_SEARCH_PATH="''${HASKELL_GI_GIR_SEARCH_PATH:+''${HASKELL_GI_GIR_SEARCH_PATH}:}$l/share/gir-1.0"
130-
fi
131-
if [ -d "$l/lib/girepository-1.0" ]; then
132-
HASKELL_GI_TYPELIB_SEARCH_PATH="''${HASKELL_GI_TYPELIB_SEARCH_PATH:+''${HASKELL_GI_TYPELIB_SEARCH_PATH}:}$l/lib/girepository-1.0"
133-
fi
134-
done
135-
export HASKELL_GI_GIR_SEARCH_PATH
136-
export HASKELL_GI_TYPELIB_SEARCH_PATH
137-
138-
# Make `pkg-config` work for haskell-gi setup executables
139-
PKG_CONFIG_EXE=$(mktemp -d)
140-
ln -s $(${pkgs.which}/bin/which $PKG_CONFIG) $PKG_CONFIG_EXE/pkg-config
141-
export PATH=$PATH:$PKG_CONFIG_EXE
142-
143-
''}
144125
${ # Note: we pass `clear` first to ensure that we never consult the implicit global package db.
145126
# However in `cabal.config` `cabal` requires `global` to be first.
146127
flagsAndConfig "package-db" ["clear"]

test/gi-gtk/default.nix

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ let
1515
in recurseIntoAttrs rec {
1616
meta.disabled = stdenv.hostPlatform.isGhcjs
1717
# Gtk cross compilation seems to be broken in nixpkgs
18-
|| stdenv.hostPlatform.isWindows;
18+
|| stdenv.hostPlatform.isWindows
19+
# We can't make static libraries for Gtk
20+
|| stdenv.hostPlatform.isMusl;
1921

2022
ifdInputs = {
2123
inherit (project) plan-nix;

0 commit comments

Comments
 (0)