dfasma: modernize, move to by-name/

This commit is contained in:
pancaek
2025-10-21 19:59:42 -07:00
parent 94e81c1f95
commit db37f785a8
2 changed files with 14 additions and 15 deletions
@@ -1,12 +1,10 @@
{
mkDerivation,
stdenv,
lib,
fetchFromGitHub,
fftw,
libsndfile,
qtbase,
qtmultimedia,
qmake,
libsForQt5,
}:
let
@@ -36,13 +34,13 @@ let
};
in
mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "dfasma";
version = "1.4.5";
src = fetchFromGitHub {
sha256 = "09fcyjm0hg3y51fnjax88m93im39nbynxj79ffdknsazmqw9ac0h";
rev = "v${version}";
tag = "v${finalAttrs.version}";
repo = "dfasma";
owner = "gillesdegottex";
};
@@ -50,11 +48,14 @@ mkDerivation rec {
buildInputs = [
fftw
libsndfile
qtbase
qtmultimedia
libsForQt5.qtbase
libsForQt5.qtmultimedia
];
nativeBuildInputs = [ qmake ];
nativeBuildInputs = [
libsForQt5.qmake
libsForQt5.wrapQtAppsHook
];
postPatch = ''
cp -Rv "${reaperFork.src}"/* external/REAPER
@@ -62,7 +63,7 @@ mkDerivation rec {
substituteInPlace dfasma.pro --replace "CONFIG += file_sdif" "";
'';
meta = with lib; {
meta = {
description = "Analyse and compare audio files in time and frequency";
mainProgram = "dfasma";
longDescription = ''
@@ -75,9 +76,9 @@ mkDerivation rec {
'';
homepage = "https://gillesdegottex.gitlab.io/dfasma-website/";
license = [
licenses.gpl3Plus
lib.licenses.gpl3Plus
reaperFork.meta.license
];
platforms = platforms.linux;
platforms = lib.platforms.linux;
};
}
})
-2
View File
@@ -10934,8 +10934,6 @@ with pkgs;
inherit (callPackage ../development/tools/devpod { }) devpod devpod-desktop;
dfasma = libsForQt5.callPackage ../applications/audio/dfasma { };
djv = callPackage ../by-name/dj/djv/package.nix { openexr = openexr_2; };
djview4 = djview;