git.iko.soy/typeable/nixpkgs
on master help sign in
dvd-slideshow: Add package.

This adds dvd-slideshow, a suite of command line programs that creates a slideshow-style video from groups of pictures.

commit085a0e8d242765c1ab348f12cd606c281223fc73 authorRobbin C <robbinch33@gmail.com> dateWed 10 Jun 2015, 17:34 (11 years ago) parent48381b7
2 files changed+71
pkgs/applications/video/dvd-slideshow/default.nix+69 pkgs/top-level/all-packages.nix+2
pkgs/applications/video/dvd-slideshow/default.nixnew file+69
@@ -0,0 +1,69 @@
1+{ stdenv, fetchurl, writeScript, cdrtools, dvdauthor, ffmpeg, imagemagick, lame, mjpegtools, sox, transcode, vorbisTools }:
2+
3+let
4+ wrapper = writeScript "dvd-slideshow.sh" ''
5+ #!/bin/bash
6+ # wrapper script for dvd-slideshow programs
7+ export PATH=${cdrtools}/bin:${dvdauthor}/bin:${ffmpeg}/bin:${imagemagick}/bin:${lame}/bin:${mjpegtools}/bin:${sox}/bin:${transcode}/bin:${vorbisTools}/bin:$PATH
8+
9+ dir=`dirname "$0"`
10+ exe=`basename "$0"`
11+ case "$exe" in
12+ dvd-slideshow)
13+ # use mpeg2enc by default as ffmpeg is known to crash.
14+ # run dvd-slideshow.ffmpeg to force ffmpeg.
15+ "$dir/dvd-slideshow.real" -mpeg2enc $@
16+ ;;
17+
18+ dvd-slideshow.ffmpeg)
19+ "$dir/dvd-slideshow.real" $@
20+ ;;
21+
22+ *)
23+ "$dir/$exe.real" $@
24+ ;;
25+ esac
26+ '';
27+
28+in stdenv.mkDerivation rec {
29+ name = "dvd-slideshow";
30+ version = "0.8.4-2";
31+ src = fetchurl {
32+ url = "mirror://sourceforge/dvd-slideshow/files/${name}-${version}.tar.gz";
33+ sha256 = "17c09aqvippiji2sd0pcxjg3nb1mnh9k5nia4gn5lhcvngjcp1q5";
34+ };
35+
36+ patchPhase = ''
37+ # fix upstream typos
38+ substituteInPlace dvd-slideshow \
39+ --replace "version='0.8.4-1'" "version='0.8.4-2'" \
40+ --replace "mymyecho" "myecho"
41+ '';
42+
43+ installPhase = ''
44+ mkdir -p "$out/bin"
45+ cp dvd-slideshow "$out/bin/dvd-slideshow.real"
46+ cp dvd-menu "$out/bin/dvd-menu.real"
47+ cp dir2slideshow "$out/bin/dir2slideshow.real"
48+ cp gallery1-to-slideshow "$out/bin/gallery1-to-slideshow.real"
49+ cp jigl2slideshow "$out/bin/jigl2slideshow.real"
50+
51+ cp ${wrapper} "$out/bin/dvd-slideshow.sh"
52+ ln -s dvd-slideshow.sh "$out/bin/dvd-slideshow"
53+ ln -s dvd-slideshow.sh "$out/bin/dvd-slideshow.ffmpeg"
54+ ln -s dvd-slideshow.sh "$out/bin/dvd-menu"
55+ ln -s dvd-slideshow.sh "$out/bin/dir2slideshow"
56+ ln -s dvd-slideshow.sh "$out/bin/gallery1-to-slideshow"
57+ ln -s dvd-slideshow.sh "$out/bin/jigl2slideshow"
58+
59+ cp -a man "$out/"
60+ '';
61+
62+ meta = {
63+ description = "Suite of command line programs that creates a slideshow-style video from groups of pictures.";
64+ homepage = http://dvd-slideshow.sourceforge.net/wiki/Main_Page;
65+ license = stdenv.lib.licenses.gpl2;
66+ platforms = stdenv.lib.platforms.linux;
67+ maintainers = [ stdenv.lib.maintainers.robbinch ];
68+ };
69+}
pkgs/top-level/all-packages.nix+2
@@ -10767,6 +10767,8 @@ let
1076710767
1076810768 dvdauthor = callPackage ../applications/video/dvdauthor { };
1076910769
10770+ dvd-slideshow = callPackage ../applications/video/dvd-slideshow { };
10771+
1077010772 dwb = callPackage ../applications/networking/browsers/dwb { dconf = gnome3.dconf; };
1077110773
1077210774 dwbWrapper = wrapFirefox