git.iko.soy/typeable/nixpkgs
on master help sign in
lightworks: init at 14.0.0
commit7a9efec8edd064dec5fbd08bb3fa358a4844d746 authorAnton Schirg <anton.schirg@posteo.de> dateSat 6 May 2017, 14:55 (10 years ago) parenta4a6380
3 files changed+90
lib/maintainers.nix+1 pkgs/applications/video/lightworks/default.nix+87 pkgs/top-level/all-packages.nix+2
lib/maintainers.nix+1
@@ -43,6 +43,7 @@
4343 andsild = "Anders Sildnes <andsild@gmail.com>";
4444 aneeshusa = "Aneesh Agrawal <aneeshusa@gmail.com>";
4545 antono = "Antono Vasiljev <self@antono.info>";
46+ antonxy = "Anton Schirg <anton.schirg@posteo.de>";
4647 apeschar = "Albert Peschar <albert@peschar.net>";
4748 apeyroux = "Alexandre Peyroux <alex@px.io>";
4849 ardumont = "Antoine R. Dumont <eniotna.t@gmail.com>";
pkgs/applications/video/lightworks/default.nixnew file+87
@@ -0,0 +1,87 @@
1+{ stdenv, fetchurl, dpkg, makeWrapper, patchelf, buildFHSUserEnv
2+, gtk3, gnome3, gdk_pixbuf, cairo, libjpeg_original, glib, gnome2, mesa_glu
3+, nvidia_cg_toolkit, zlib, openssl, portaudio
4+}:
5+let
6+ fullPath = stdenv.lib.makeLibraryPath [
7+ stdenv.cc.cc
8+ gnome3.gtk
9+ gdk_pixbuf
10+ cairo
11+ libjpeg_original
12+ glib
13+ gnome2.pango
14+ mesa_glu
15+ nvidia_cg_toolkit
16+ zlib
17+ openssl
18+ portaudio
19+ ];
20+
21+ lightworks = stdenv.mkDerivation rec {
22+ version = "14.0.0";
23+ name = "lightworks-${version}";
24+
25+ src =
26+ if stdenv.system == "x86_64-linux" then
27+ fetchurl {
28+ url = "http://downloads.lwks.com/v14/lwks-14.0.0-amd64.deb";
29+ sha256 = "66eb9f9678d979db76199f1c99a71df0ddc017bb47dfda976b508849ab305033";
30+ }
31+ else throw "${name} is not supported on ${stdenv.system}";
32+
33+ buildInputs = [ dpkg makeWrapper ];
34+
35+ phases = [ "unpackPhase" "installPhase" ];
36+ unpackPhase = "dpkg-deb -x ${src} ./";
37+
38+ installPhase = ''
39+ mkdir -p $out/bin
40+ substitute usr/bin/lightworks $out/bin/lightworks \
41+ --replace "/usr/lib/lightworks" "$out/lib/lightworks"
42+ chmod +x $out/bin/lightworks
43+
44+ cp -r usr/lib $out
45+
46+ # /usr/share/fonts is not normally searched
47+ # This adds it to lightworks' search path while keeping the default
48+ # using the FONTCONFIG_FILE env variable
49+ echo "<?xml version='1.0'?>
50+ <!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
51+ <fontconfig>
52+ <dir>/usr/share/fonts/truetype</dir>
53+ <include>/etc/fonts/fonts.conf</include>
54+ </fontconfig>" > $out/lib/lightworks/fonts.conf
55+
56+ patchelf \
57+ --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
58+ $out/lib/lightworks/ntcardvt
59+
60+ wrapProgram $out/lib/lightworks/ntcardvt \
61+ --prefix LD_LIBRARY_PATH : ${fullPath}:$out/lib/lightworks \
62+ --set FONTCONFIG_FILE $out/lib/lightworks/fonts.conf
63+
64+ cp -r usr/share $out/share
65+ '';
66+
67+ dontPatchELF = true;
68+
69+ meta = {
70+ description = "Professional Non-Linear Video Editor";
71+ homepage = "https://www.lwks.com/";
72+ license = stdenv.lib.licenses.unfree;
73+ maintainers = [ stdenv.lib.maintainers.antonxy ];
74+ platforms = [ "x86_64-linux" ];
75+ };
76+ };
77+
78+# Lightworks expects some files in /usr/share/lightworks
79+in buildFHSUserEnv rec {
80+ name = "lightworks";
81+
82+ targetPkgs = pkgs: [
83+ lightworks
84+ ];
85+
86+ runScript = "lightworks";
87+}
pkgs/top-level/all-packages.nix+2
@@ -14611,6 +14611,8 @@ with pkgs;
1461114611 inherit (gnome3) libpeas gsettings_desktop_schemas dconf;
1461214612 };
1461314613
14614+ lightworks = callPackage ../applications/video/lightworks { };
14615+
1461414616 lingot = callPackage ../applications/audio/lingot {
1461514617 inherit (gnome2) libglade;
1461614618 };