tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
brasero: cleanup
Nikolay Amiantov
10 years ago
28f8ec1d
a4e8b8ef
+11
-22
1 changed file
expand all
collapse all
unified
split
pkgs
tools
cd-dvd
brasero
default.nix
+11
-22
pkgs/tools/cd-dvd/brasero/default.nix
···
1
{ stdenv, fetchurl, pkgconfig, gtk3, itstool, gst_all_1, libxml2, libnotify
2
-
, libcanberra_gtk3, intltool, gnome3, makeWrapper, dvdauthor, cdrdao
3
-
, dvdplusrwtools, cdrtools, libdvdcss }:
4
5
let
6
major = "3.12";
7
minor = "0";
8
-
GST_PLUGIN_PATH = stdenv.lib.makeSearchPath "lib/gstreamer-1.0" [
9
-
gst_all_1.gst-plugins-base
10
-
gst_all_1.gst-plugins-good
11
-
gst_all_1.gst-plugins-bad
12
-
gst_all_1.gst-libav ];
13
14
in stdenv.mkDerivation rec {
15
version = "${major}.${minor}";
···
20
sha256 = "68fef2699b772fa262d855dac682100dbfea05563a7e4056eff8fe6447aec2fc";
21
};
22
23
-
propagatedUserEnvPkgs = [ gnome3.gnome_themes_standard dvdauthor
24
-
cdrdao dvdplusrwtools cdrtools ];
25
26
-
buildInputs = [ pkgconfig gtk3 itstool libxml2 libnotify libcanberra_gtk3
27
-
intltool gnome3.gsettings_desktop_schemas makeWrapper libdvdcss
28
-
gst_all_1.gstreamer gst_all_1.gst-plugins-base gnome3.dconf
29
-
gst_all_1.gst-plugins-good gst_all_1.gst-plugins-bad ];
30
31
# brasero checks that the applications it uses aren't symlinks, but this
32
# will obviously not work on nix
···
36
"--with-girdir=$out/share/gir-1.0"
37
"--with-typelibdir=$out/lib/girepository-1.0" ];
38
0
0
39
preFixup = ''
40
-
for f in $out/bin/* $out/libexec/*; do
41
-
wrapProgram "$f" \
42
-
--prefix XDG_DATA_DIRS : "${gnome3.gnome_themes_standard}/share:$XDG_ICON_DIRS:$GSETTINGS_SCHEMAS_PATH" \
43
-
--prefix GST_PLUGIN_SYSTEM_PATH_1_0 : "$GST_PLUGIN_SYSTEM_PATH_1_0" \
44
-
--prefix GST_PLUGIN_PATH : "${GST_PLUGIN_PATH}" \
45
-
--prefix GIO_EXTRA_MODULES : "${gnome3.dconf}/lib/gio/modules" \
46
-
--prefix LD_LIBRARY_PATH : ${libdvdcss}/lib
47
-
done
48
-
rm $out/share/icons/hicolor/icon-theme.cache
49
'';
50
51
meta = with stdenv.lib; {
···
1
{ stdenv, fetchurl, pkgconfig, gtk3, itstool, gst_all_1, libxml2, libnotify
2
+
, libcanberra_gtk3, intltool, makeWrapper, dvdauthor, cdrdao
3
+
, dvdplusrwtools, cdrtools, libdvdcss, wrapGAppsHook }:
4
5
let
6
major = "3.12";
7
minor = "0";
8
+
binpath = stdenv.lib.makeSearchPath "bin" [ dvdauthor cdrdao dvdplusrwtools cdrtools ];
0
0
0
0
9
10
in stdenv.mkDerivation rec {
11
version = "${major}.${minor}";
···
16
sha256 = "68fef2699b772fa262d855dac682100dbfea05563a7e4056eff8fe6447aec2fc";
17
};
18
19
+
nativeBuildInputs = [ pkgconfig itstool intltool wrapGAppsHook ];
0
20
21
+
buildInputs = [ gtk3 libxml2 libnotify libcanberra_gtk3 libdvdcss
22
+
gst_all_1.gstreamer gst_all_1.gst-plugins-base
23
+
gst_all_1.gst-plugins-good gst_all_1.gst-plugins-bad
24
+
gst_all_1.gst-plugins-ugly gst_all_1.gst-libav ];
25
26
# brasero checks that the applications it uses aren't symlinks, but this
27
# will obviously not work on nix
···
31
"--with-girdir=$out/share/gir-1.0"
32
"--with-typelibdir=$out/lib/girepository-1.0" ];
33
34
+
NIX_CFLAGS_LINK = [ "-ldvdcss" ];
35
+
36
preFixup = ''
37
+
gappsWrapperArgs+=(--prefix PATH : "${binpath}")
0
0
0
0
0
0
0
0
38
'';
39
40
meta = with stdenv.lib; {