about summary refs log tree commit diff
path: root/pkgs/applications/video
diff options
context:
space:
mode:
authorIngo Blechschmidt <iblech@web.de>2021-02-10 22:05:40 +0100
committerIngo Blechschmidt <iblech@web.de>2021-02-11 01:09:31 +0100
commit4398078fb29a6c1b49006f6e71e08ea543933d6d (patch)
treef0d112de145cc34d59eccdfbc6534881c539dd85 /pkgs/applications/video
parentdd65c8b2a7c936f2456c4d2c7a2dc6789bc3f177 (diff)
downloadnixlib-4398078fb29a6c1b49006f6e71e08ea543933d6d.tar
nixlib-4398078fb29a6c1b49006f6e71e08ea543933d6d.tar.gz
nixlib-4398078fb29a6c1b49006f6e71e08ea543933d6d.tar.bz2
nixlib-4398078fb29a6c1b49006f6e71e08ea543933d6d.tar.lz
nixlib-4398078fb29a6c1b49006f6e71e08ea543933d6d.tar.xz
nixlib-4398078fb29a6c1b49006f6e71e08ea543933d6d.tar.zst
nixlib-4398078fb29a6c1b49006f6e71e08ea543933d6d.zip
cinelerra: unbreak the build (make compatible with gcc10)
We also take the opportunity to change the source to the current
canonical upstream and to do various small cleanups.
Diffstat (limited to 'pkgs/applications/video')
-rw-r--r--pkgs/applications/video/cinelerra/default.nix29
1 files changed, 18 insertions, 11 deletions
diff --git a/pkgs/applications/video/cinelerra/default.nix b/pkgs/applications/video/cinelerra/default.nix
index bfc577e51a20..e0249f6d0b2f 100644
--- a/pkgs/applications/video/cinelerra/default.nix
+++ b/pkgs/applications/video/cinelerra/default.nix
@@ -1,4 +1,4 @@
-{ lib, stdenv, fetchFromGitHub, autoconf, automake, libtool
+{ lib, stdenv, fetchFromGitHub, fetchpatch, autoconf, automake, libtool
 , pkg-config, faad2, faac, a52dec, alsaLib, fftw, lame, libavc1394
 , libiec61883, libraw1394, libsndfile, libvorbis, libogg, libjpeg
 , libtiff, freetype, mjpegtools, x264, gettext, openexr
@@ -10,12 +10,20 @@ stdenv.mkDerivation {
   name = "cinelerra-cv-2018-05-16";
 
   src = fetchFromGitHub {
-    owner = "ratopi";
-    repo = "CinelerraCV";
+    owner = "cinelerra-cv-team";
+    repo = "cinelerra-cv";
     rev = "d9c0dbf4393717f0a42f4b91c3e1ed5b16f955dc";
     sha256 = "0a8kfm1v96sv6jh4568crg6nkr6n3579i9xksfj8w199s6yxzsbk";
   };
 
+  patches = [
+    # avoid gcc10 error about narrowing
+    (fetchpatch {
+      url = "https://github.com/cinelerra-cv-team/cinelerra-cv/pull/2/commits/a1b2d9c3bd5730ec0284894f3d81892af3e77f1f.patch";
+      sha256 = "1cjyv1m174dblpa1bs5dggk24h4477zqvc5sbfc0m5rpkndx5ycp";
+    })
+  ];
+
   preConfigure = ''
     find -type f -print0 | xargs --null sed -e "s@/usr/bin/perl@${perl}/bin/perl@" -i
     ./autogen.sh
@@ -28,10 +36,9 @@ stdenv.mkDerivation {
   '';
   enableParallelBuilding = true;
 
+  nativeBuildInputs = [ automake autoconf libtool pkg-config file intltool ];
   buildInputs =
-    [ automake
-      autoconf libtool pkg-config file
-      faad2 faac
+    [ faad2 faac
       a52dec alsaLib   fftw lame libavc1394 libiec61883
       libraw1394 libsndfile libvorbis libogg libjpeg libtiff freetype
       mjpegtools x264 gettext openexr
@@ -39,13 +46,13 @@ stdenv.mkDerivation {
       libtheora libpng libdv libuuid
       nasm
       perl
-      fontconfig intltool
+      fontconfig
     ];
 
-  meta = {
+  meta = with lib; {
     description = "Video Editor";
-    homepage = "http://www.cinelerra.org";
-    maintainers = [ lib.maintainers.marcweber ];
-    license = lib.licenses.gpl2;
+    homepage = "https://www.cinelerra.org/";
+    maintainers = with maintainers; [ marcweber ];
+    license = licenses.gpl2Only;
   };
 }