2017-05-17 21:26:11 +02:00
|
|
|
{ stdenv, fetchFromGitHub, fftw, libsndfile, qtbase, qtmultimedia, qmake }:
|
2015-06-16 03:12:30 +02:00
|
|
|
|
2015-09-03 18:13:51 +02:00
|
|
|
let
|
|
|
|
|
|
|
|
reaperFork = {
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
sha256 = "07m2wf2gqyya95b65gawrnr4pvc9jyzmg6h8sinzgxlpskz93wwc";
|
|
|
|
rev = "39053e8896eedd7b3e8a9e9a9ffd80f1fc6ceb16";
|
|
|
|
repo = "reaper";
|
|
|
|
owner = "gillesdegottex";
|
|
|
|
};
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
license = licenses.asl20;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2015-09-13 21:38:51 +02:00
|
|
|
libqaudioextra = {
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
sha256 = "17pvlij8cc4lwzf6f1cnygj3m3ci6xfa3lv5bgcr5i1gzyjxqpq1";
|
|
|
|
rev = "b7d187cd9a1fd76ea94151e2e02453508d0151d3";
|
|
|
|
repo = "libqaudioextra";
|
|
|
|
owner = "gillesdegottex";
|
|
|
|
};
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2016-01-25 20:08:34 +01:00
|
|
|
in stdenv.mkDerivation rec {
|
2015-06-16 03:12:30 +02:00
|
|
|
name = "dfasma-${version}";
|
2016-01-25 20:08:34 +01:00
|
|
|
version = "1.2.5";
|
2015-06-16 03:12:30 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2016-01-25 20:08:34 +01:00
|
|
|
sha256 = "0mgy2bkmyp7lvaqsr7hkndwdgjf26mlpsj6smrmn1vp0cqyrw72d";
|
|
|
|
rev = "v${version}";
|
2015-06-16 03:12:30 +02:00
|
|
|
repo = "dfasma";
|
|
|
|
owner = "gillesdegottex";
|
|
|
|
};
|
|
|
|
|
2017-06-02 17:40:19 +02:00
|
|
|
buildInputs = [ fftw libsndfile qtbase qtmultimedia ];
|
2015-09-05 01:32:13 +02:00
|
|
|
|
2017-05-17 21:26:11 +02:00
|
|
|
nativeBuildInputs = [ qmake ];
|
2015-10-14 16:44:10 +02:00
|
|
|
|
2015-09-05 01:32:13 +02:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace dfasma.pro --replace '$$DFASMAVERSIONGITPRO' '${version}'
|
|
|
|
cp -Rv "${reaperFork.src}"/* external/REAPER
|
2015-09-13 21:38:51 +02:00
|
|
|
cp -Rv "${libqaudioextra.src}"/* external/libqaudioextra
|
2015-09-05 01:32:13 +02:00
|
|
|
'';
|
|
|
|
|
2016-04-16 21:59:20 +02:00
|
|
|
preConfigure = ''
|
|
|
|
qmakeFlags="$qmakeFlags PREFIXSHORTCUT=$out"
|
2015-09-05 01:32:13 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2015-06-16 03:12:30 +02:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
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/;
|
2015-09-03 18:13:51 +02:00
|
|
|
license = [ licenses.gpl3Plus reaperFork.meta.license ];
|
|
|
|
platforms = platforms.linux;
|
2015-06-16 03:12:30 +02:00
|
|
|
maintainers = with maintainers; [ nckx ];
|
|
|
|
};
|
|
|
|
}
|