lightworks: 2023.2-146240 -> 2023.2-146752

This commit is contained in:
Austin Butler 2024-07-28 17:46:57 -07:00
parent 89b6c71cc4
commit 39fba22f3e

View File

@ -1,7 +1,30 @@
{ lib, stdenv, fetchurl, dpkg, makeWrapper, buildFHSEnv {
, gtk3, gdk-pixbuf, cairo, libjpeg_original, glib, pango, libGLU lib,
, libGL, nvidia_cg_toolkit, zlib, openssl, libuuid stdenv,
, alsa-lib, udev, libjack2, freetype, libva, libvdpau fetchurl,
dpkg,
makeWrapper,
buildFHSEnv,
gtk3,
gdk-pixbuf,
cairo,
libjpeg_original,
glib,
pango,
libGLU,
libGL,
nvidia_cg_toolkit,
zlib,
openssl,
libuuid,
alsa-lib,
udev,
libjack2,
freetype,
libva,
libvdpau,
twolame,
gmp,
}: }:
let let
fullPath = lib.makeLibraryPath [ fullPath = lib.makeLibraryPath [
@ -24,20 +47,23 @@ let
freetype freetype
libva libva
libvdpau libvdpau
twolame
gmp
]; ];
lightworks = stdenv.mkDerivation rec { lightworks = stdenv.mkDerivation rec {
version = "2023.2"; version = "2023.2";
rev = "146240"; rev = "146752";
pname = "lightworks"; pname = "lightworks";
src = src =
if stdenv.hostPlatform.system == "x86_64-linux" then if stdenv.hostPlatform.system == "x86_64-linux" then
fetchurl { fetchurl {
url = "https://cdn.lwks.com/releases/${version}/lightworks_${version}_r${rev}.deb"; url = "https://cdn.lwks.com/releases/${version}/lightworks_${version}_r${rev}.deb";
sha256 = "sha256-sVEDCZZsY5OwuWebrhatzZiws89/tEKIdgY54PN0Ddo="; sha256 = "sha256-Xjcqdhe85YdPX8AHpKmo/K77AURg0JvtqIvilQOV2ek=";
} }
else throw "${pname}-${version} is not supported on ${stdenv.hostPlatform.system}"; else
throw "${pname}-${version} is not supported on ${stdenv.hostPlatform.system}";
nativeBuildInputs = [ makeWrapper ]; nativeBuildInputs = [ makeWrapper ];
buildInputs = [ dpkg ]; buildInputs = [ dpkg ];
@ -76,13 +102,12 @@ let
dontPatchELF = true; dontPatchELF = true;
}; };
in
# Lightworks expects some files in /usr/share/lightworks # Lightworks expects some files in /usr/share/lightworks
in buildFHSEnv { buildFHSEnv {
name = lightworks.name; inherit (lightworks) pname version;
targetPkgs = pkgs: [ targetPkgs = pkgs: [ lightworks ];
lightworks
];
runScript = "lightworks"; runScript = "lightworks";
@ -91,7 +116,12 @@ in buildFHSEnv {
homepage = "https://www.lwks.com/"; homepage = "https://www.lwks.com/";
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ]; sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
license = lib.licenses.unfree; license = lib.licenses.unfree;
maintainers = with lib.maintainers; [ antonxy vojta001 kashw2 ]; mainProgram = "lightworks";
maintainers = with lib.maintainers; [
antonxy
vojta001
kashw2
];
platforms = [ "x86_64-linux" ]; platforms = [ "x86_64-linux" ];
}; };
} }