uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
92
pkgs/applications/video/lightworks/default.nix
Normal file
92
pkgs/applications/video/lightworks/default.nix
Normal file
|
|
@ -0,0 +1,92 @@
|
|||
{ lib, stdenv, fetchurl, dpkg, makeWrapper, buildFHSUserEnv
|
||||
, gtk3, gdk-pixbuf, cairo, libjpeg_original, glib, pango, libGLU
|
||||
, libGL, nvidia_cg_toolkit, zlib, openssl, libuuid , alsa-lib, udev, libjack2
|
||||
}:
|
||||
let
|
||||
fullPath = lib.makeLibraryPath [
|
||||
stdenv.cc.cc
|
||||
gtk3
|
||||
gdk-pixbuf
|
||||
cairo
|
||||
libjpeg_original
|
||||
glib
|
||||
pango
|
||||
libGL
|
||||
libGLU
|
||||
nvidia_cg_toolkit
|
||||
zlib
|
||||
openssl
|
||||
libuuid
|
||||
alsa-lib
|
||||
libjack2
|
||||
udev
|
||||
];
|
||||
|
||||
lightworks = stdenv.mkDerivation rec {
|
||||
version = "2022.1.1";
|
||||
rev = "132926";
|
||||
pname = "lightworks";
|
||||
|
||||
src =
|
||||
if stdenv.hostPlatform.system == "x86_64-linux" then
|
||||
fetchurl {
|
||||
url = "https://cdn.lwks.com/releases/${version}/lightworks_${version}_r${rev}.deb";
|
||||
sha256 = "sha256-f2lxfv0sFESpDnINDKlfVcR0pySAueMeOMbkgBWzz7Q=";
|
||||
}
|
||||
else throw "${pname}-${version} is not supported on ${stdenv.hostPlatform.system}";
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
buildInputs = [ dpkg ];
|
||||
|
||||
unpackPhase = "dpkg-deb -x ${src} ./";
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
substitute usr/bin/lightworks $out/bin/lightworks \
|
||||
--replace "/usr/lib/lightworks" "$out/lib/lightworks"
|
||||
chmod +x $out/bin/lightworks
|
||||
|
||||
cp -r usr/lib $out
|
||||
|
||||
# /usr/share/fonts is not normally searched
|
||||
# This adds it to lightworks' search path while keeping the default
|
||||
# using the FONTCONFIG_FILE env variable
|
||||
echo "<?xml version='1.0'?>
|
||||
<!DOCTYPE fontconfig SYSTEM 'urn:fontconfig:fonts.dtd'>
|
||||
<fontconfig>
|
||||
<dir>/usr/share/fonts/truetype</dir>
|
||||
<include>/etc/fonts/fonts.conf</include>
|
||||
</fontconfig>" > $out/lib/lightworks/fonts.conf
|
||||
|
||||
patchelf \
|
||||
--interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
||||
$out/lib/lightworks/ntcardvt
|
||||
|
||||
wrapProgram $out/lib/lightworks/ntcardvt \
|
||||
--prefix LD_LIBRARY_PATH : ${fullPath}:$out/lib/lightworks \
|
||||
--set FONTCONFIG_FILE $out/lib/lightworks/fonts.conf
|
||||
|
||||
cp -r usr/share $out/share
|
||||
'';
|
||||
|
||||
dontPatchELF = true;
|
||||
};
|
||||
|
||||
# Lightworks expects some files in /usr/share/lightworks
|
||||
in buildFHSUserEnv {
|
||||
name = lightworks.name;
|
||||
|
||||
targetPkgs = pkgs: [
|
||||
lightworks
|
||||
];
|
||||
|
||||
runScript = "lightworks";
|
||||
|
||||
meta = {
|
||||
description = "Professional Non-Linear Video Editor";
|
||||
homepage = "https://www.lwks.com/";
|
||||
license = lib.licenses.unfree;
|
||||
maintainers = with lib.maintainers; [ antonxy vojta001 ];
|
||||
platforms = [ "x86_64-linux" ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue