libsForQt5.libopenshot-audio: refactor

- finalAttrs design pattern
- strictDeps
This commit is contained in:
Anderson Torres 2023-11-30 10:58:45 -03:00
parent 4739e28eb1
commit 211b645d47
3 changed files with 13 additions and 11 deletions

View file

@ -19,20 +19,20 @@
, Foundation , Foundation
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "libopenshot-audio"; pname = "libopenshot-audio";
version = "0.3.2"; version = "0.3.2";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "OpenShot"; owner = "OpenShot";
repo = "libopenshot-audio"; repo = "libopenshot-audio";
rev = "v${version}"; rev = "v${finalAttrs.version}";
sha256 = "sha256-PLpB9sy9xehipN5S9okCHm1mPm5MaZMVaFqCBvFUiTw="; hash = "sha256-PLpB9sy9xehipN5S9okCHm1mPm5MaZMVaFqCBvFUiTw=";
}; };
patches = [ patches = [
# https://forum.juce.com/t/juce-and-macos-11-arm/40285/24 # https://forum.juce.com/t/juce-and-macos-11-arm/40285/24
./undef-fpret-on-aarch64-darwin.patch ./0001-undef-fpret-on-aarch64-darwin.patch
]; ];
nativeBuildInputs = [ nativeBuildInputs = [
@ -58,9 +58,11 @@ stdenv.mkDerivation rec {
libXrandr libXrandr
]); ]);
doCheck = false; strictDeps = true;
meta = with lib; { doCheck = true;
meta = {
homepage = "http://openshot.org/"; homepage = "http://openshot.org/";
description = "High-quality sound editing library"; description = "High-quality sound editing library";
longDescription = '' longDescription = ''
@ -68,8 +70,8 @@ stdenv.mkDerivation rec {
high-quality editing and playback of audio, and is based on the amazing high-quality editing and playback of audio, and is based on the amazing
JUCE library. JUCE library.
''; '';
license = with licenses; gpl3Plus; license = with lib.licenses; [ gpl3Plus ];
maintainers = with maintainers; [ AndersonTorres ]; maintainers = with lib.maintainers; [ AndersonTorres ];
platforms = with platforms; unix; platforms = lib.platforms.unix;
}; };
} })

View file

@ -146,7 +146,7 @@ in (noExtraAttrs (kdeFrameworks // plasmaMobileGear // plasma5 // plasma5.thirdP
packagekit-qt = callPackage ../tools/package-management/packagekit/qt.nix { }; packagekit-qt = callPackage ../tools/package-management/packagekit/qt.nix { };
libopenshot-audio = callPackage ../applications/video/openshot-qt/libopenshot-audio.nix { libopenshot-audio = callPackage ../applications/video/openshot-qt/libopenshot-audio {
inherit (pkgs.darwin.apple_sdk.frameworks) Accelerate AGL Cocoa Foundation; inherit (pkgs.darwin.apple_sdk.frameworks) Accelerate AGL Cocoa Foundation;
}; };