2020-10-06 13:16:25 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, fetchurl
|
|
|
|
, autoPatchelfHook
|
|
|
|
, dpkg
|
|
|
|
, qt5
|
|
|
|
, libjack2
|
2021-06-10 02:57:09 +00:00
|
|
|
, alsa-lib
|
2020-10-06 13:16:25 +00:00
|
|
|
, bzip2
|
2023-12-29 14:28:58 +00:00
|
|
|
, libpulseaudio
|
|
|
|
, xz
|
|
|
|
}:
|
2020-10-06 13:16:25 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "ocenaudio";
|
2024-05-01 23:35:15 +00:00
|
|
|
version = "3.13.8";
|
2020-10-06 13:16:25 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2024-02-09 14:09:22 +00:00
|
|
|
url = "https://www.ocenaudio.com/downloads/index.php/ocenaudio_debian9_64.deb?version=v${version}";
|
2024-05-01 23:35:15 +00:00
|
|
|
hash = "sha256-GKNho2xV6Lc4U5Ys4j+ZiGxE8irolcrTttN3PG1S2Ug=";
|
2020-10-06 13:16:25 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2023-12-29 14:28:58 +00:00
|
|
|
alsa-lib
|
2020-10-06 13:16:25 +00:00
|
|
|
autoPatchelfHook
|
2023-12-29 14:28:58 +00:00
|
|
|
bzip2
|
2020-10-06 13:16:25 +00:00
|
|
|
libjack2
|
|
|
|
libpulseaudio
|
2023-12-29 14:28:58 +00:00
|
|
|
qt5.qtbase
|
|
|
|
qt5.wrapQtAppsHook
|
|
|
|
xz
|
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
|
2024-01-17 12:12:27 +00:00
|
|
|
mv $out/usr/share $out/share
|
|
|
|
rm -rf $out/usr
|
|
|
|
substituteInPlace $out/share/applications/ocenaudio.desktop \
|
2024-02-09 14:09:22 +00:00
|
|
|
--replace-fail "/opt/ocenaudio/bin/ocenaudio" "ocenaudio"
|
2024-01-17 12:12:27 +00:00
|
|
|
mkdir -p $out/share/licenses/ocenaudio
|
|
|
|
mv $out/bin/ocenaudio_license.txt $out/share/licenses/ocenaudio/LICENSE
|
2020-10-06 13:16:25 +00:00
|
|
|
|
|
|
|
# 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
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +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";
|
2022-06-04 22:19:25 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|