python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / applications / video / imagination / default.nix
blob732d8f547ff69e34900871ee91fd0bec2c7826bb
1 { lib, stdenv, fetchurl, autoreconfHook, docbook_xsl, ffmpeg-full, glib, gtk3
2 , intltool, libxslt, pkg-config, sox, wrapGAppsHook }:
4 stdenv.mkDerivation rec {
5   pname = "imagination";
6   version = "3.6";
8   src = fetchurl {
9     url = "mirror://sourceforge/${pname}/${pname}-${version}.tar.gz";
10     sha256 = "139dgb9vfr2q7bxvjskykdz526xxwrn0bh463ir8m2p7rx5a3pw5";
11   };
13   nativeBuildInputs = [
14     autoreconfHook
15     docbook_xsl
16     intltool
17     libxslt
18     pkg-config
19     wrapGAppsHook
20   ];
22   buildInputs = [ ffmpeg-full glib gtk3 sox ];
24   preBuild = ''
25     substituteInPlace src/main-window.c \
26       --replace 'gtk_icon_theme_load_icon(icon_theme,"image", 20, 0, NULL)' \
27       'gtk_icon_theme_load_icon(icon_theme,"insert-image", 20, 0, NULL)' \
28       --replace 'gtk_icon_theme_load_icon(icon_theme,"sound", 20, 0, NULL)' \
29       'gtk_icon_theme_load_icon(icon_theme,"audio-x-generic", 20, 0, NULL)'
30   '';
32   preFixup = ''
33     gappsWrapperArgs+=(
34        --prefix PATH : "${lib.makeBinPath [ ffmpeg-full sox ]}"
35     )
36   '';
38   meta = with lib; {
39     description = "Lightweight and simple DVD slide show maker";
40     homepage = "http://imagination.sourceforge.net";
41     license = licenses.gpl3Only;
42     maintainers = with maintainers; [ austinbutler ];
43     platforms = platforms.linux;
44   };