aboutsummaryrefslogtreecommitdiff
path: root/pkgs/tools/audio
diff options
context:
space:
mode:
authorLinus Heckemann <git@sphalerite.org>2019-06-23 10:00:50 +0200
committerGitHub <noreply@github.com>2019-06-23 10:00:50 +0200
commitbd286ce6e534ec3c6c75c55984eb36d75c4ab828 (patch)
tree19004b179eb624662d2744bc38e1dd7c90ef8c17 /pkgs/tools/audio
parent772d2d03f9ea6f09df16ea11e27366f11ac47fbd (diff)
parent1dc8c1375798a14b7aac584c1657deed37032d20 (diff)
Merge pull request #61826 from gnidorah/video2midi
video2midi: init at 0.3.7
Diffstat (limited to 'pkgs/tools/audio')
-rw-r--r--pkgs/tools/audio/video2midi/default.nix35
1 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/tools/audio/video2midi/default.nix b/pkgs/tools/audio/video2midi/default.nix
new file mode 100644
index 00000000000..4452aea280a
--- /dev/null
+++ b/pkgs/tools/audio/video2midi/default.nix
@@ -0,0 +1,35 @@
+{ stdenv, fetchFromGitHub, python2Packages, opencv3 }:
+
+let
+ opencv3_ = python2Packages.toPythonModule (opencv3.override {
+ enablePython = true;
+ pythonPackages = python2Packages;
+ enableFfmpeg = true;
+ });
+in stdenv.mkDerivation rec {
+ pname = "video2midi";
+ version = "0.3.7";
+
+ src = fetchFromGitHub {
+ owner = "svsdval";
+ repo = pname;
+ rev = version;
+ sha256 = "00ms9iqam3ml6fxf8djki3gyifn8sfzfkkfrdgrvs0sq47wrkc39";
+ };
+
+ pythonPath = with python2Packages; [ opencv3_ midiutil pygame pyopengl ];
+ nativeBuildInputs = with python2Packages; [ python wrapPython ];
+
+ installPhase = ''
+ install -Dm755 v2m.py $out/bin/v2m.py
+ wrapPythonPrograms
+ '';
+
+ meta = with stdenv.lib; {
+ description = "Youtube synthesia video to midi conversion tool";
+ homepage = src.meta.homepage;
+ license = licenses.gpl3;
+ maintainers = [ maintainers.gnidorah ];
+ platforms = platforms.linux;
+ };
+}