summary refs log tree commit diff
path: root/pkgs/applications/audio/dfasma
diff options
context:
space:
mode:
authorTobias Geerinckx-Rice <tobias.geerinckx.rice@gmail.com>2015-06-16 03:12:30 +0200
committerTobias Geerinckx-Rice <tobias.geerinckx.rice@gmail.com>2015-06-16 03:15:15 +0200
commit82ec18463dad6997eb6a66225f0c8017e867b105 (patch)
tree3ccc57027175e771dc4f3f8c9e5e4f24b94c68db /pkgs/applications/audio/dfasma
parent28a586de4d8e1ed859d8cab859ce9d3bf8387ed2 (diff)
downloadnixpkgs-82ec18463dad6997eb6a66225f0c8017e867b105.tar
nixpkgs-82ec18463dad6997eb6a66225f0c8017e867b105.tar.gz
nixpkgs-82ec18463dad6997eb6a66225f0c8017e867b105.tar.bz2
nixpkgs-82ec18463dad6997eb6a66225f0c8017e867b105.tar.lz
nixpkgs-82ec18463dad6997eb6a66225f0c8017e867b105.tar.xz
nixpkgs-82ec18463dad6997eb6a66225f0c8017e867b105.tar.zst
nixpkgs-82ec18463dad6997eb6a66225f0c8017e867b105.zip
Add dfasma 1.0.1: analyse/compare audio files
Diffstat (limited to 'pkgs/applications/audio/dfasma')
-rw-r--r--pkgs/applications/audio/dfasma/default.nix43
1 files changed, 43 insertions, 0 deletions
diff --git a/pkgs/applications/audio/dfasma/default.nix b/pkgs/applications/audio/dfasma/default.nix
new file mode 100644
index 00000000000..0dda6e3dabd
--- /dev/null
+++ b/pkgs/applications/audio/dfasma/default.nix
@@ -0,0 +1,43 @@
+{ stdenv, fetchFromGitHub, fftw, libsndfile, qt5 }:
+
+let version = "1.0.1"; in
+stdenv.mkDerivation {
+  name = "dfasma-${version}";
+
+  src = fetchFromGitHub {
+    sha256 = "16m6jnr49j525xxqiwmwni07rcdg92p0dcznd5bmzz34xsm0cbiz";
+    rev = "v${version}";
+    repo = "dfasma";
+    owner = "gillesdegottex";
+  };
+
+  meta = with stdenv.lib; {
+    inherit version;
+    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;
+    platforms = with platforms; linux;
+    maintainers = with maintainers; [ nckx ];
+  };
+
+  buildInputs = [ fftw libsndfile qt5.base qt5.multimedia ];
+
+  configurePhase = ''
+    qmake DESTDIR=$out/bin dfasma.pro
+  '';
+
+  enableParallelBuilding = true;
+
+  postInstall = ''
+    install -Dm644 distrib/dfasma.desktop $out/share/applications/dfasma.desktop
+    install -Dm644 icons/dfasma.png $out/share/pixmaps/dfasma.png
+  '';
+}