nixpkgs/pkgs/applications/audio/ocenaudio/default.nix

56 lines
1.1 KiB
Nix
Raw Normal View History

2020-10-06 13:16:25 +00:00
{ stdenv
, lib
, fetchurl
, autoPatchelfHook
, dpkg
, qt5
, libjack2
, alsa-lib
2020-10-06 13:16:25 +00:00
, bzip2
, libpulseaudio }:
stdenv.mkDerivation rec {
pname = "ocenaudio";
2023-06-04 13:03:20 +00:00
version = "3.12.2";
2020-10-06 13:16:25 +00:00
src = fetchurl {
url = "https://www.ocenaudio.com/downloads/index.php/ocenaudio_debian9_64.deb?version=${version}";
2023-06-04 13:03:20 +00:00
sha256 = "sha256-AzQAEU5o3m1cFCxeyT32AzX4WUk3DliBPdw+cfQPyKU=";
2020-10-06 13:16:25 +00:00
};
nativeBuildInputs = [
autoPatchelfHook
qt5.qtbase
2021-04-16 22:37:08 +00:00
qt5.wrapQtAppsHook
2020-10-06 13:16:25 +00:00
libjack2
libpulseaudio
bzip2
alsa-lib
2020-10-06 13:16:25 +00:00
];
buildInputs = [ dpkg ];
dontUnpack = true;
dontBuild = true;
dontStrip = true;
installPhase = ''
mkdir -p $out
dpkg -x $src $out
cp -av $out/opt/ocenaudio/* $out
rm -rf $out/opt
# Create symlink bzip2 library
2022-03-18 16:19:56 +00:00
ln -s ${bzip2.out}/lib/libbz2.so.1 $out/lib/libbz2.so.1.0
2020-10-06 13:16:25 +00:00
'';
meta = with lib; {
2020-10-06 13:16:25 +00:00
description = "Cross-platform, easy to use, fast and functional audio editor";
homepage = "https://www.ocenaudio.com";
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
2020-10-06 13:16:25 +00:00
license = licenses.unfree;
2023-03-16 20:20:24 +00:00
platforms = [ "x86_64-linux" ];
2020-10-06 13:16:25 +00:00
maintainers = with maintainers; [ onny ];
};
}