mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-18 19:03:28 +00:00
video2midi: init at 0.3.7
This commit is contained in:
parent
699a32e5ff
commit
1dc8c13757
35
pkgs/tools/audio/video2midi/default.nix
Normal file
35
pkgs/tools/audio/video2midi/default.nix
Normal file
@ -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;
|
||||
};
|
||||
}
|
@ -6425,6 +6425,8 @@ in
|
||||
|
||||
vfdecrypt = callPackage ../tools/misc/vfdecrypt { };
|
||||
|
||||
video2midi = callPackage ../tools/audio/video2midi { };
|
||||
|
||||
vifm = callPackage ../applications/misc/vifm { };
|
||||
|
||||
viking = callPackage ../applications/misc/viking {
|
||||
|
Loading…
Reference in New Issue
Block a user