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