Skip to content

Commit 6e6ab46

Browse files
authored
dvdauthor: fix cross build (NixOS#373460)
2 parents 18f936b + 4fba2d7 commit 6e6ab46

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

pkgs/by-name/dv/dvdauthor/package.nix

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,18 @@ stdenv.mkDerivation rec {
3737
nativeBuildInputs = [
3838
pkg-config
3939
autoreconfHook
40+
libxml2 # xml2-config (only checked for, not used)
41+
];
42+
43+
# set *-config for cross builds
44+
configureFlags = [
45+
"FREETYPECONFIG=${lib.getExe' (lib.getDev freetype) "freetype-config"}"
46+
"XML2_CONFIG=${lib.getExe' (lib.getDev libxml2) "xml2-config"}"
4047
];
4148

4249
meta = with lib; {
4350
description = "Tools for generating DVD files to be played on standalone DVD players";
44-
homepage = "https://dvdauthor.sourceforge.net/";
51+
homepage = "https://dvdauthor.sourceforge.net/"; # or https://github.com/ldo/dvdauthor
4552
license = licenses.gpl2;
4653
platforms = platforms.linux ++ platforms.darwin;
4754
};

0 commit comments

Comments
 (0)