summary refs log tree commit diff
path: root/pkgs/applications/video/aegisub/default.nix
diff options
context:
space:
mode:
authorJan Tojnar <jtojnar@gmail.com>2019-12-15 05:44:17 +0100
committerJan Tojnar <jtojnar@gmail.com>2019-12-15 05:44:17 +0100
commit6842813bb1e7aa7f464ea1ce7aab3b78b19f9653 (patch)
tree599c7fb87a375f29ed6f64a81b1a296b7394d992 /pkgs/applications/video/aegisub/default.nix
parent955be27f588347d4e380c3a31b51e822cef1b349 (diff)
downloadnixpkgs-6842813bb1e7aa7f464ea1ce7aab3b78b19f9653.tar
nixpkgs-6842813bb1e7aa7f464ea1ce7aab3b78b19f9653.tar.gz
nixpkgs-6842813bb1e7aa7f464ea1ce7aab3b78b19f9653.tar.bz2
nixpkgs-6842813bb1e7aa7f464ea1ce7aab3b78b19f9653.tar.lz
nixpkgs-6842813bb1e7aa7f464ea1ce7aab3b78b19f9653.tar.xz
nixpkgs-6842813bb1e7aa7f464ea1ce7aab3b78b19f9653.tar.zst
nixpkgs-6842813bb1e7aa7f464ea1ce7aab3b78b19f9653.zip
aegisub: slight clean up
Diffstat (limited to 'pkgs/applications/video/aegisub/default.nix')
-rw-r--r--pkgs/applications/video/aegisub/default.nix86
1 files changed, 65 insertions, 21 deletions
diff --git a/pkgs/applications/video/aegisub/default.nix b/pkgs/applications/video/aegisub/default.nix
index c9e30c862a8..83f7ebc29d1 100644
--- a/pkgs/applications/video/aegisub/default.nix
+++ b/pkgs/applications/video/aegisub/default.nix
@@ -1,16 +1,42 @@
-{ config, stdenv, fetchurl, fetchpatch
-, libX11, wxGTK
-, libiconv, fontconfig, freetype
-, libGLU, libGL
-, libass, fftw, ffms
-, ffmpeg, pkgconfig, zlib # Undocumented (?) dependencies
-, icu, boost, intltool # New dependencies
-, spellcheckSupport ? true, hunspell ? null
-, automationSupport ? true, lua ? null
-, openalSupport ? false, openal ? null
-, alsaSupport ? stdenv.isLinux, alsaLib ? null
-, pulseaudioSupport ? config.pulseaudio or stdenv.isLinux, libpulseaudio ? null
-, portaudioSupport ? false, portaudio ? null }:
+{ config
+, stdenv
+, fetchurl
+, fetchpatch
+, libX11
+, wxGTK
+, libiconv
+, fontconfig
+, freetype
+, libGLU
+, libGL
+, libass
+, fftw
+, ffms
+, ffmpeg
+, pkg-config
+, zlib
+, icu
+, boost
+, intltool
+
+, spellcheckSupport ? true
+, hunspell ? null
+
+, automationSupport ? true
+, lua ? null
+
+, openalSupport ? false
+, openal ? null
+
+, alsaSupport ? stdenv.isLinux
+, alsaLib ? null
+
+, pulseaudioSupport ? config.pulseaudio or stdenv.isLinux
+, libpulseaudio ? null
+
+, portaudioSupport ? false
+, portaudio ? null
+}:
 
 assert spellcheckSupport -> (hunspell != null);
 assert automationSupport -> (lua != null);
@@ -20,7 +46,8 @@ assert pulseaudioSupport -> (libpulseaudio != null);
 assert portaudioSupport -> (portaudio != null);
 
 with stdenv.lib;
-stdenv.mkDerivation rec {
+stdenv.mkDerivation
+ rec {
   pname = "aegisub";
   version = "3.2.2";
 
@@ -43,9 +70,26 @@ stdenv.mkDerivation rec {
     })
   ];
 
-  buildInputs = with stdenv.lib;
-  [ pkgconfig intltool libX11 wxGTK fontconfig freetype libGLU libGL
-    libass fftw ffms ffmpeg zlib icu boost boost.out libiconv
+  nativeBuildInputs = [
+    pkg-config
+    intltool
+  ];
+
+  buildInputs = with stdenv.lib; [
+    libX11
+    wxGTK
+    fontconfig
+    freetype
+    libGLU
+    libGL
+    libass
+    fftw
+    ffms
+    ffmpeg
+    zlib
+    icu
+    boost
+    libiconv
   ]
     ++ optional spellcheckSupport hunspell
     ++ optional automationSupport lua
@@ -78,11 +122,11 @@ stdenv.mkDerivation rec {
       audio, and features many powerful tools for styling them, including a
       built-in real-time video preview.
     '';
-    homepage = http://www.aegisub.org/;
+    homepage = "http://www.aegisub.org/";
+    # The Aegisub sources are itself BSD/ISC,
+    # but they are linked against GPL'd softwares
+    # - so the resulting program will be GPL
     license = licenses.bsd3;
-              # The Aegisub sources are itself BSD/ISC,
-              # but they are linked against GPL'd softwares
-              # - so the resulting program will be GPL
     maintainers = [ maintainers.AndersonTorres ];
     platforms = [ "i686-linux" "x86_64-linux" ];
   };