Skip to content

Commit ccc9ced

Browse files
committed
investigate gd build error in nix develop shell
input-output-hk/haskell.nix#1865
1 parent efd9de5 commit ccc9ced

File tree

2 files changed

+91
-84
lines changed

2 files changed

+91
-84
lines changed

flake.nix

Lines changed: 51 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
let
1818
supportedSystems = [
1919
"x86_64-linux"
20-
"x86_64-darwin"
21-
"aarch64-linux"
22-
"aarch64-darwin"
20+
# "x86_64-darwin"
21+
# "aarch64-linux"
22+
# "aarch64-darwin"
2323
];
2424
in
2525
flake-utils.lib.eachSystem supportedSystems (system:
@@ -38,46 +38,53 @@
3838
flake = pkgs.hixProject.flake {};
3939

4040
buildInputs = with pkgs; [
41-
pkgs.brotli
42-
pkgs.gd
43-
pkgs.unzip
44-
pkgs.openssl
45-
pkgs.zlib
46-
pkgs.libjpeg
47-
pkgs.libpng
48-
pkgs.libtiff
49-
pkgs.freetype
50-
pkgs.expat
51-
pkgs.fontconfig
52-
pkgs.libwebp
53-
pkgs.bzip2_1_1
54-
pkgs.libavif
55-
pkgs.libheif
56-
pkgs.xorg.libXpm
57-
pkgs.libimagequant
58-
pkgs.autoconf
59-
pkgs.automake
60-
61-
pkgs.xz
62-
pkgs.lzlib
63-
pkgs.xml2
64-
pkgs.libdeflate
65-
pkgs.libaom
66-
pkgs.libjxl
67-
pkgs.libyuv
68-
pkgs.dav1d
69-
pkgs.libvmaf
70-
71-
# pkgs.haskellPackages.gd
72-
73-
pkgs.binutils
74-
# pkgs.icu67
75-
pkgs.glibc
76-
# pkgs.cryptodev
77-
78-
xorg.libX11
79-
80-
# pkgs.pkg-config
41+
42+
pkg-config
43+
44+
brotli
45+
gd
46+
unzip
47+
openssl
48+
zlib
49+
libjpeg
50+
libpng
51+
libtiff
52+
freetype
53+
expat
54+
fontconfig
55+
# these appear to be dependencies of
56+
# https://hackage.haskell.org/package/gd-3000.7.3
57+
58+
libwebp
59+
bzip2_1_1
60+
libavif
61+
libheif
62+
libvmaf
63+
xorg.libXpm
64+
libimagequant
65+
autoconf
66+
automake
67+
68+
xz
69+
lzlib
70+
xml2
71+
libdeflate
72+
libaom
73+
libjxl
74+
libyuv
75+
dav1d
76+
libvmaf
77+
78+
# haskellPackages.gd
79+
80+
# binutils
81+
# icu67
82+
# glibc
83+
# cryptodev
84+
85+
# xorg.libX11
86+
87+
8188
];
8289

8390
in flake // {
@@ -92,7 +99,7 @@
9299
devShells.default = pkgs.hixProject.shellFor {
93100
inherit buildInputs;
94101

95-
LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath buildInputs;
102+
# LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath buildInputs;
96103

97104
packages = ps: with ps; [ ];
98105
tools = {

hackage-server.cabal

Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -515,38 +515,38 @@ common test-defaults
515515
autogen-modules: Paths_hackage_server
516516

517517

518-
-- test-suite HighLevelTest
519-
-- import: test-defaults
520-
521-
-- type: exitcode-stdio-1.0
522-
-- main-is: HighLevelTest.hs
523-
-- other-modules:
524-
-- HackageClientUtils
525-
-- Run
526-
-- MailUtils
527-
-- HttpUtils
528-
-- Package
529-
-- Util
530-
531-
-- -- This tells cabal that this test depends on the executable
532-
-- -- component 'hackage-server' from this very same package, as well
533-
-- -- as adding the build-folder where the `hackage-server`
534-
-- -- executable can be found in front of $PATH
535-
-- --
536-
-- -- TODO: hackage-server isn't build-tool, it's run-tool!
537-
-- -- so if this works, it's accidental!
538-
-- build-tool-depends: hackage-server:hackage-server
539-
540-
-- -- NOTE: lib-server is not a real dependency; it's only used to inherit version constraints
541-
-- build-depends:
542-
-- -- version constraints inherited from lib-server
543-
-- , HTTP
544-
-- , base64-bytestring
545-
-- , random
546-
-- -- component-specific dependencies
547-
-- , xml ^>= 1.3.14
548-
-- , io-streams ^>= 1.5.0.1
549-
-- , http-io-streams ^>= 0.1.6.1
518+
test-suite HighLevelTest
519+
import: test-defaults
520+
521+
type: exitcode-stdio-1.0
522+
main-is: HighLevelTest.hs
523+
other-modules:
524+
HackageClientUtils
525+
Run
526+
MailUtils
527+
HttpUtils
528+
Package
529+
Util
530+
531+
-- This tells cabal that this test depends on the executable
532+
-- component 'hackage-server' from this very same package, as well
533+
-- as adding the build-folder where the `hackage-server`
534+
-- executable can be found in front of $PATH
535+
--
536+
-- TODO: hackage-server isn't build-tool, it's run-tool!
537+
-- so if this works, it's accidental!
538+
build-tool-depends: hackage-server:hackage-server
539+
540+
-- NOTE: lib-server is not a real dependency; it's only used to inherit version constraints
541+
build-depends:
542+
-- version constraints inherited from lib-server
543+
, HTTP
544+
, base64-bytestring
545+
, random
546+
-- component-specific dependencies
547+
, xml ^>= 1.3.14
548+
, io-streams ^>= 1.5.0.1
549+
, http-io-streams ^>= 0.1.6.1
550550

551551
test-suite ReverseDependenciesTest
552552
import: test-defaults
@@ -640,12 +640,12 @@ test-suite HashTests
640640
, tasty ^>= 1.4
641641
, tasty-hunit ^>= 0.10
642642

643-
-- test-suite DocTests
644-
-- import: test-defaults
643+
test-suite DocTests
644+
import: test-defaults
645645

646-
-- type: exitcode-stdio-1.0
647-
-- main-is: DocTestMain.hs
648-
-- build-depends:
649-
-- , lib-server
650-
-- , doctest-parallel ^>= 0.3.0
651-
-- -- doctest-parallel-0.2.2 is the first to filter out autogen-modules
646+
type: exitcode-stdio-1.0
647+
main-is: DocTestMain.hs
648+
build-depends:
649+
, lib-server
650+
, doctest-parallel ^>= 0.3.0
651+
-- doctest-parallel-0.2.2 is the first to filter out autogen-modules

0 commit comments

Comments
 (0)