about summary refs log tree commit diff
path: root/pkgs/applications/video
diff options
context:
space:
mode:
authorGuillaume Girol <symphorien@users.noreply.github.com>2021-06-17 18:51:48 +0000
committerGitHub <noreply@github.com>2021-06-17 18:51:48 +0000
commit185b114d7d9d8f2b526467b838c3013fe782017e (patch)
tree64f3c862dd5dd98782a95f315c87b1e6f751fc27 /pkgs/applications/video
parente8e025516256498d4217086e349e6b4b291e352e (diff)
parent990a17bd02d4b8e710fcd90a27277ddaa7072e9e (diff)
Merge pull request #126728 from austinbutler/imagination
imagination: init at 3.6
Diffstat (limited to 'pkgs/applications/video')
-rw-r--r--pkgs/applications/video/imagination/default.nix45
1 files changed, 45 insertions, 0 deletions
diff --git a/pkgs/applications/video/imagination/default.nix b/pkgs/applications/video/imagination/default.nix
new file mode 100644
index 0000000000000..732d8f547ff69
--- /dev/null
+++ b/pkgs/applications/video/imagination/default.nix
@@ -0,0 +1,45 @@
+{ lib, stdenv, fetchurl, autoreconfHook, docbook_xsl, ffmpeg-full, glib, gtk3
+, intltool, libxslt, pkg-config, sox, wrapGAppsHook }:
+
+stdenv.mkDerivation rec {
+  pname = "imagination";
+  version = "3.6";
+
+  src = fetchurl {
+    url = "mirror://sourceforge/${pname}/${pname}-${version}.tar.gz";
+    sha256 = "139dgb9vfr2q7bxvjskykdz526xxwrn0bh463ir8m2p7rx5a3pw5";
+  };
+
+  nativeBuildInputs = [
+    autoreconfHook
+    docbook_xsl
+    intltool
+    libxslt
+    pkg-config
+    wrapGAppsHook
+  ];
+
+  buildInputs = [ ffmpeg-full glib gtk3 sox ];
+
+  preBuild = ''
+    substituteInPlace src/main-window.c \
+      --replace 'gtk_icon_theme_load_icon(icon_theme,"image", 20, 0, NULL)' \
+      'gtk_icon_theme_load_icon(icon_theme,"insert-image", 20, 0, NULL)' \
+      --replace 'gtk_icon_theme_load_icon(icon_theme,"sound", 20, 0, NULL)' \
+      'gtk_icon_theme_load_icon(icon_theme,"audio-x-generic", 20, 0, NULL)'
+  '';
+
+  preFixup = ''
+    gappsWrapperArgs+=(
+       --prefix PATH : "${lib.makeBinPath [ ffmpeg-full sox ]}"
+    )
+  '';
+
+  meta = with lib; {
+    description = "Lightweight and simple DVD slide show maker";
+    homepage = "http://imagination.sourceforge.net";
+    license = licenses.gpl3Only;
+    maintainers = with maintainers; [ austinbutler ];
+    platforms = platforms.linux;
+  };
+}