nixpkgs/pkgs/applications/audio/friture/default.nix

47 lines
979 B
Nix
Raw Normal View History

2019-09-28 17:50:30 +02:00
{ lib, fetchFromGitHub, python3Packages, wrapQtAppsHook }:
let
py = python3Packages;
in py.buildPythonApplication rec {
pname = "friture";
2020-07-20 18:09:40 +02:00
version = "unstable-2020-02-16";
2019-09-28 17:50:30 +02:00
src = fetchFromGitHub {
owner = "tlecomte";
repo = pname;
2020-07-20 18:09:40 +02:00
rev = "4460b4e72a9c55310d6438f294424b5be74fc0aa";
sha256 = "1pmxzq78ibifby3gbir1ah30mgsqv0y7zladf5qf3sl5r1as0yym";
2019-09-28 17:50:30 +02:00
};
nativeBuildInputs = (with py; [ numpy cython scipy ]) ++
[ wrapQtAppsHook ];
propagatedBuildInputs = with py; [
sounddevice
pyopengl
2020-07-20 18:09:40 +02:00
pyopengl-accelerate
2019-09-28 17:50:30 +02:00
docutils
numpy
pyqt5
appdirs
pyrr
2020-07-20 18:09:40 +02:00
rtmixer
];
patches = [
./unlock_constraints.patch
2019-09-28 17:50:30 +02:00
];
preFixup = ''
makeWrapperArgs+=("''${qtWrapperArgs[@]}")
2019-09-28 17:50:30 +02:00
'';
meta = with lib; {
description = "A real-time audio analyzer";
homepage = "http://friture.org/";
2019-09-28 17:50:30 +02:00
license = licenses.gpl3;
platforms = platforms.linux; # fails on Darwin
2019-09-28 17:50:30 +02:00
maintainers = [ maintainers.laikq ];
};
}