50 stdenv.mkDerivation rec {
54 src = fetchFromGitea {
55 domain = "codeberg.org";
56 owner = "tenacityteam";
58 fetchSubmodules = true;
60 hash = "sha256-UU3iKfab6en4IyGlpNLUhOil3snzaZ2nI6JMqoL6DUs=";
64 mkdir -p build/src/private
65 touch build/src/private/RevisionIdent.h
67 substituteInPlace libraries/lib-files/FileNames.cpp \
68 --replace /usr/include/linux/magic.h \
69 ${linuxHeaders}/include/linux/magic.h
74 wrapProgram "$out/bin/tenacity" \
75 --suffix AUDACITY_PATH : "$out/share/tenacity" \
76 --suffix AUDACITY_MODULES_PATH : "$out/lib/tenacity/modules" \
77 --prefix LD_LIBRARY_PATH : "$out/lib/tenacity" \
78 --prefix XDG_DATA_DIRS : "$out/share:$GSETTINGS_SCHEMAS_PATH"
81 env.NIX_CFLAGS_COMPILE = "-D GIT_DESCRIBE=\"\"";
83 # tenacity only looks for ffmpeg at runtime, so we need to link it in manually
84 NIX_LDFLAGS = toString [
101 ] ++ lib.optionals stdenv.isLinux [
133 ] ++ lib.optionals stdenv.isLinux [
147 # RPATH of binary /nix/store/.../bin/... contains a forbidden reference to /build/
148 "-DCMAKE_SKIP_BUILD_RPATH=ON"
152 description = "Sound editor with graphical UI";
153 mainProgram = "tenacity";
154 homepage = "https://tenacityaudio.org/";
155 license = licenses.gpl2Plus;
156 maintainers = with maintainers; [ irenes lheckemann ];
157 platforms = platforms.linux;