Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 772d2d03f9ea
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: bd286ce6e534
Choose a head ref
  • 3 commits
  • 4 files changed
  • 2 contributors

Commits on Jun 2, 2019

  1. pythonPackages.midiutil: init at 1.2.1

    gnidorah committed Jun 2, 2019
    Copy the full SHA
    699a32e View commit details

Commits on Jun 7, 2019

  1. video2midi: init at 0.3.7

    gnidorah committed Jun 7, 2019
    Copy the full SHA
    1dc8c13 View commit details

Commits on Jun 23, 2019

  1. Merge pull request #61826 from gnidorah/video2midi

    video2midi: init at 0.3.7
    lheckemann authored Jun 23, 2019

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    bd286ce View commit details
Showing with 57 additions and 0 deletions.
  1. +18 −0 pkgs/development/python-modules/midiutil/default.nix
  2. +35 −0 pkgs/tools/audio/video2midi/default.nix
  3. +2 −0 pkgs/top-level/all-packages.nix
  4. +2 −0 pkgs/top-level/python-packages.nix
18 changes: 18 additions & 0 deletions pkgs/development/python-modules/midiutil/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{ stdenv, buildPythonPackage, fetchPypi }:

buildPythonPackage rec {
pname = "MIDIUtil";
version = "1.2.1";

src = fetchPypi {
inherit pname version;
sha256 = "02m9sqv36zrzgz5zg2w9qmz8snzlm27yg3ways2hgipgs4xriykr";
};

meta = with stdenv.lib; {
homepage = "https://github.com/MarkCWirt/MIDIUtil";
description = "A pure python library for creating multi-track MIDI files";
license = licenses.mit;
maintainers = [ maintainers.gnidorah ];
};
}
35 changes: 35 additions & 0 deletions pkgs/tools/audio/video2midi/default.nix
Original file line number Diff line number Diff line change
@@ -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;
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
@@ -6466,6 +6466,8 @@ in

vfdecrypt = callPackage ../tools/misc/vfdecrypt { };

video2midi = callPackage ../tools/audio/video2midi { };

vifm = callPackage ../applications/misc/vifm { };

viking = callPackage ../applications/misc/viking {
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
@@ -2238,6 +2238,8 @@ in {

python-mapnik = callPackage ../development/python-modules/python-mapnik { };

midiutil = callPackage ../development/python-modules/midiutil {};

misaka = callPackage ../development/python-modules/misaka {};

mt-940 = callPackage ../development/python-modules/mt-940 { };