Files
nixpkgs/pkgs/by-name/dv/dvdauthor/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

71 lines
1.8 KiB
Nix

{
lib,
stdenv,
fetchpatch2,
fetchurl,
autoreconfHook,
libdvdread,
libxml2,
freetype,
fribidi,
libpng,
zlib,
pkg-config,
flex,
bison,
}:
stdenv.mkDerivation rec {
pname = "dvdauthor";
version = "0.7.2";
src = fetchurl {
url = "mirror://sourceforge/dvdauthor/dvdauthor-${version}.tar.gz";
hash = "sha256-MCCpLen3jrNvSLbyLVoAHEcQeCZjSnhaYt/NCA9hLrc=";
};
patches = [
(fetchpatch2 {
# remove after next release: "Use pkg-config to find FreeType"
url = "https://github.com/ldo/dvdauthor/commit/d5bb0bdd542c33214855a7062fcc485f8977934e.patch?full_index=1";
hash = "sha256-cCj1Wkc6dZvUpjentpK68Q92tb7h+OXwrqdhJ2KYMvU=";
})
(fetchpatch2 {
# remove after next release: "fix to build with GraphicsMagick" (required for subsequent patches to apply)
url = "https://github.com/ldo/dvdauthor/commit/84d971def13b7e6317eae44369f49fd709b01030.patch?full_index=1";
hash = "sha256-SWgbaS4cdvrXJ4H5KDM0S46H57rji7CX4Fkfa/RSSPA=";
})
(fetchpatch2 {
# remove after next release: "Use PKG_CHECK_MODULES to detect the libxml2 library"
url = "https://github.com/ldo/dvdauthor/commit/45705ece5ec5d7d6b9ab3e7a68194796a398e855.patch?full_index=1";
hash = "sha256-tykCr2Axc1qhUvjlGyXQ6X+HwzuFTm5Va2gjGlOlSH0=";
})
./gettext-0.25.patch
];
buildInputs = [
libpng
freetype
libdvdread
libxml2
zlib
fribidi
flex
bison
];
nativeBuildInputs = [
pkg-config
autoreconfHook
];
strictDeps = true;
meta = with lib; {
description = "Tools for generating DVD files to be played on standalone DVD players";
homepage = "https://dvdauthor.sourceforge.net/"; # or https://github.com/ldo/dvdauthor
license = licenses.gpl2;
platforms = platforms.linux ++ platforms.darwin;
};
}