2021-01-15 22:18:51 +00:00
|
|
|
{ mkDerivation, lib, stdenv, fetchFromGitHub, fftw, libsndfile, qtbase, qtmultimedia, qmake }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
|
|
|
|
reaperFork = {
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
sha256 = "07m2wf2gqyya95b65gawrnr4pvc9jyzmg6h8sinzgxlpskz93wwc";
|
|
|
|
rev = "39053e8896eedd7b3e8a9e9a9ffd80f1fc6ceb16";
|
|
|
|
repo = "REAPER";
|
|
|
|
owner = "gillesdegottex";
|
|
|
|
};
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
libqaudioextra = {
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
sha256 = "0m6x1qm7lbjplqasr2jhnd2ndi0y6z9ybbiiixnlwfm23sp15wci";
|
|
|
|
rev = "9ae051989a8fed0b2f8194b1501151909a821a89";
|
|
|
|
repo = "libqaudioextra";
|
|
|
|
owner = "gillesdegottex";
|
|
|
|
};
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
in mkDerivation rec {
|
|
|
|
pname = "dfasma";
|
|
|
|
version = "1.4.5";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
sha256 = "09fcyjm0hg3y51fnjax88m93im39nbynxj79ffdknsazmqw9ac0h";
|
|
|
|
rev = "v${version}";
|
|
|
|
repo = "dfasma";
|
|
|
|
owner = "gillesdegottex";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ fftw libsndfile qtbase qtmultimedia ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ qmake ];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
cp -Rv "${reaperFork.src}"/* external/REAPER
|
|
|
|
cp -Rv "${libqaudioextra.src}"/* external/libqaudioextra
|
|
|
|
substituteInPlace dfasma.pro --replace "CONFIG += file_sdif" "";
|
|
|
|
'';
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Analyse and compare audio files in time and frequency";
|
|
|
|
longDescription = ''
|
|
|
|
DFasma is free open-source software to compare audio files by time and
|
|
|
|
frequency. The comparison is first visual, using wavforms and spectra. It
|
|
|
|
is also possible to listen to time-frequency segments in order to allow
|
|
|
|
perceptual comparison. It is basically dedicated to analysis. Even though
|
|
|
|
there are basic functionalities to align the signals in time and
|
|
|
|
amplitude, this software does not aim to be an audio editor.
|
|
|
|
'';
|
|
|
|
homepage = "http://gillesdegottex.github.io/dfasma/";
|
|
|
|
license = [ licenses.gpl3Plus reaperFork.meta.license ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|