2021-02-05 17:12:51 +00:00
|
|
|
{ stdenv, lib, fetchurl, pkg-config, gtk3, itstool, gst_all_1, libxml2, libnotify
|
2020-04-24 23:36:52 +00:00
|
|
|
, libcanberra-gtk3, intltool, dvdauthor, libburn, libisofs
|
2024-05-15 15:35:15 +00:00
|
|
|
, vcdimager, wrapGAppsHook3, hicolor-icon-theme }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
major = "3.12";
|
2022-01-19 23:45:15 +00:00
|
|
|
minor = "3";
|
2020-04-24 23:36:52 +00:00
|
|
|
binpath = lib.makeBinPath [ dvdauthor vcdimager ];
|
|
|
|
|
|
|
|
in stdenv.mkDerivation rec {
|
|
|
|
version = "${major}.${minor}";
|
|
|
|
pname = "brasero";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2021-12-06 16:07:01 +00:00
|
|
|
url = "mirror://gnome/sources/brasero/${major}/${pname}-${version}.tar.xz";
|
2022-01-19 23:45:15 +00:00
|
|
|
hash = "sha256-h3SerjOhQSB9GwC+IzttgEWYLtMkntS5ja4fOpdf6hU=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
nativeBuildInputs = [ pkg-config itstool intltool wrapGAppsHook3 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildInputs = [ gtk3 libxml2 libnotify libcanberra-gtk3 libburn libisofs
|
|
|
|
hicolor-icon-theme
|
|
|
|
gst_all_1.gstreamer gst_all_1.gst-plugins-base
|
|
|
|
gst_all_1.gst-plugins-good gst_all_1.gst-plugins-bad
|
|
|
|
gst_all_1.gst-plugins-ugly gst_all_1.gst-libav ];
|
|
|
|
|
|
|
|
# brasero checks that the applications it uses aren't symlinks, but this
|
|
|
|
# will obviously not work on nix
|
|
|
|
patches = [ ./remove-symlink-check.patch ];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--with-girdir=$out/share/gir-1.0"
|
|
|
|
"--with-typelibdir=$out/lib/girepository-1.0"
|
|
|
|
];
|
|
|
|
|
|
|
|
preFixup = ''
|
2021-01-05 17:05:55 +00:00
|
|
|
gappsWrapperArgs+=(--prefix PATH : "${binpath}")
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2024-10-11 05:15:48 +00:00
|
|
|
env = lib.optionalAttrs stdenv.cc.isGNU {
|
|
|
|
NIX_CFLAGS_COMPILE = "-Wno-error=incompatible-pointer-types";
|
|
|
|
};
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Gnome CD/DVD Burner";
|
2024-05-15 15:35:15 +00:00
|
|
|
homepage = "https://gitlab.gnome.org/GNOME/brasero";
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = [ maintainers.bdimcheff ];
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.linux;
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "brasero";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|