Skip to content

Commit 652b84a

Browse files
committed
vips: fix build on FreeBSD
This dependency doesn't work on Darwin and it doesn't work on FreeBSD either.
1 parent 03b5641 commit 652b84a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

pkgs/by-name/vi/vips/package.nix

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ stdenv.mkDerivation (finalAttrs: {
6161
"out"
6262
"man"
6363
"dev"
64-
] ++ lib.optionals (!stdenv.hostPlatform.isDarwin) [ "devdoc" ];
64+
] ++ lib.optionals (!stdenv.hostPlatform.isDarwin && !stdenv.hostPlatform.isFreeBSD) [ "devdoc" ];
6565

6666
src = fetchFromGitHub {
6767
owner = "libvips";
@@ -83,7 +83,7 @@ stdenv.mkDerivation (finalAttrs: {
8383
ninja
8484
pkg-config
8585
]
86-
++ lib.optionals (!stdenv.hostPlatform.isDarwin) [
86+
++ lib.optionals (!stdenv.hostPlatform.isDarwin && !stdenv.hostPlatform.isFreeBSD) [
8787
gtk-doc
8888
];
8989

@@ -134,7 +134,9 @@ stdenv.mkDerivation (finalAttrs: {
134134
(lib.mesonEnable "nifti" false)
135135
(lib.mesonEnable "introspection" withIntrospection)
136136
]
137-
++ lib.optional (!stdenv.hostPlatform.isDarwin) (lib.mesonBool "gtk_doc" true)
137+
++ lib.optional (!stdenv.hostPlatform.isDarwin && !stdenv.hostPlatform.isFreeBSD) (
138+
lib.mesonBool "gtk_doc" true
139+
)
138140
++ lib.optional (imagemagick == null) (lib.mesonEnable "magick" false);
139141

140142
passthru = {

0 commit comments

Comments
 (0)