tenacity: unstable-2022-06-30 -> 1.3-beta2

This commit is contained in:
Irene Knapp 2023-04-07 22:06:00 -07:00
parent 456d8190ad
commit dae0393b4b
No known key found for this signature in database
GPG key ID: E457C097BEB7A005

View file

@ -1,6 +1,6 @@
{ stdenv { stdenv
, lib , lib
, fetchFromGitHub , fetchFromGitea
, fetchpatch , fetchpatch
, cmake , cmake
, wxGTK32 , wxGTK32
@ -30,7 +30,7 @@
, expat , expat
, libid3tag , libid3tag
, libopus , libopus
, ffmpeg_4 , ffmpeg_5
, soundtouch , soundtouch
, pcre , pcre
, portaudio , portaudio
@ -49,32 +49,27 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "tenacity"; pname = "tenacity";
version = "unstable-2022-06-30"; version = "1.3-beta2";
src = fetchFromGitHub { src = fetchFromGitea {
domain = "codeberg.org";
owner = "tenacityteam"; owner = "tenacityteam";
repo = pname; repo = pname;
rev = "91f8b4340b159af551fff94a284c6b0f704a7932"; rev = "v${version}";
sha256 = "sha256-4VWckXzqo2xspw9eUloDvjxQYbsHn6ghEDw+hYqJcCE="; sha256 = "sha256-9gWoqFa87neIvRnezWI3RyCAOU4wKEHPn/Hgj3/fol0=";
}; };
patches = [
(fetchpatch {
url = "https://aur.archlinux.org/cgit/aur.git/plain/wxwidgets-gtk3-3.1.6-plus.patch?h=tenacity-wxgtk3-git&id=c2503538fa7d7001181905988179952d09f69659";
postFetch = "echo >> $out";
sha256 = "sha256-xRY1tizBJ9CBY6e9oZVz4CWx7DWPGD9A9Ysol4prBww=";
})
];
postPatch = '' postPatch = ''
touch src/RevisionIdent.h mkdir -p build/src/private
touch build/src/private/RevisionIdent.h
substituteInPlace src/FileNames.cpp \ substituteInPlace libraries/lib-files/FileNames.cpp \
--replace /usr/include/linux/magic.h ${linuxHeaders}/include/linux/magic.h --replace /usr/include/linux/magic.h \
${linuxHeaders}/include/linux/magic.h
''; '';
postFixup = '' postFixup = ''
rm $out/tenacity rm $out/audacity
wrapProgram "$out/bin/tenacity" \ wrapProgram "$out/bin/tenacity" \
--suffix AUDACITY_PATH : "$out/share/tenacity" \ --suffix AUDACITY_PATH : "$out/share/tenacity" \
--suffix AUDACITY_MODULES_PATH : "$out/lib/tenacity/modules" \ --suffix AUDACITY_MODULES_PATH : "$out/lib/tenacity/modules" \
@ -90,7 +85,6 @@ stdenv.mkDerivation rec {
"-lavdevice" "-lavdevice"
"-lavfilter" "-lavfilter"
"-lavformat" "-lavformat"
"-lavresample"
"-lavutil" "-lavutil"
"-lpostproc" "-lpostproc"
"-lswresample" "-lswresample"
@ -110,7 +104,7 @@ stdenv.mkDerivation rec {
buildInputs = [ buildInputs = [
alsa-lib alsa-lib
expat expat
ffmpeg_4 ffmpeg_5
file file
flac flac
glib glib