2021-01-25 08:26:54 +00:00
|
|
|
{ mkDerivation, lib, fetchFromGitHub, fftw, libsndfile, qtbase, qtmultimedia, qmake }:
|
2015-06-16 01:12:30 +00:00
|
|
|
|
2015-09-03 16:13:51 +00:00
|
|
|
let
|
|
|
|
|
|
|
|
reaperFork = {
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
sha256 = "07m2wf2gqyya95b65gawrnr4pvc9jyzmg6h8sinzgxlpskz93wwc";
|
|
|
|
rev = "39053e8896eedd7b3e8a9e9a9ffd80f1fc6ceb16";
|
2017-12-08 15:30:10 +00:00
|
|
|
repo = "REAPER";
|
2015-09-03 16:13:51 +00:00
|
|
|
owner = "gillesdegottex";
|
|
|
|
};
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2015-09-03 16:13:51 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2015-09-13 19:38:51 +00:00
|
|
|
libqaudioextra = {
|
|
|
|
src = fetchFromGitHub {
|
2017-12-08 15:30:10 +00:00
|
|
|
sha256 = "0m6x1qm7lbjplqasr2jhnd2ndi0y6z9ybbiiixnlwfm23sp15wci";
|
|
|
|
rev = "9ae051989a8fed0b2f8194b1501151909a821a89";
|
2015-09-13 19:38:51 +00:00
|
|
|
repo = "libqaudioextra";
|
|
|
|
owner = "gillesdegottex";
|
|
|
|
};
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2015-09-13 19:38:51 +00:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2020-04-07 20:31:09 +00:00
|
|
|
in mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "dfasma";
|
2017-12-08 15:30:10 +00:00
|
|
|
version = "1.4.5";
|
2015-06-16 01:12:30 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2017-12-08 15:30:10 +00:00
|
|
|
sha256 = "09fcyjm0hg3y51fnjax88m93im39nbynxj79ffdknsazmqw9ac0h";
|
2016-01-25 19:08:34 +00:00
|
|
|
rev = "v${version}";
|
2015-06-16 01:12:30 +00:00
|
|
|
repo = "dfasma";
|
|
|
|
owner = "gillesdegottex";
|
|
|
|
};
|
|
|
|
|
2017-06-02 15:40:19 +00:00
|
|
|
buildInputs = [ fftw libsndfile qtbase qtmultimedia ];
|
2015-09-04 23:32:13 +00:00
|
|
|
|
2017-05-17 19:26:11 +00:00
|
|
|
nativeBuildInputs = [ qmake ];
|
2015-10-14 14:44:10 +00:00
|
|
|
|
2015-09-04 23:32:13 +00:00
|
|
|
postPatch = ''
|
|
|
|
cp -Rv "${reaperFork.src}"/* external/REAPER
|
2015-09-13 19:38:51 +00:00
|
|
|
cp -Rv "${libqaudioextra.src}"/* external/libqaudioextra
|
2017-12-08 15:30:10 +00:00
|
|
|
substituteInPlace dfasma.pro --replace "CONFIG += file_sdif" "";
|
2015-09-04 23:32:13 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2015-06-16 01:12:30 +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.
|
|
|
|
'';
|
2022-02-05 20:30:33 +00:00
|
|
|
homepage = "https://gillesdegottex.gitlab.io/dfasma-website/";
|
2015-09-03 16:13:51 +00:00
|
|
|
license = [ licenses.gpl3Plus reaperFork.meta.license ];
|
|
|
|
platforms = platforms.linux;
|
2015-06-16 01:12:30 +00:00
|
|
|
};
|
|
|
|
}
|