diff options
author | Ram Kromberg <ramkromberg@mail.com> | 2016-07-07 15:46:26 +0300 |
---|---|---|
committer | Ram Kromberg <ramkromberg@mail.com> | 2016-07-13 22:04:35 +0300 |
commit | 697f0df394c728c27643251aa1d50356ab5774f9 (patch) | |
tree | 9ba4b31a36f0644c08307ebe89d7e4bca686109e /pkgs/applications/misc/lenmus | |
parent | 5630ac1d928ec9d1d773f4dccc5b24031fc8dae3 (diff) |
lenmus: init at 5.4.1
Diffstat (limited to 'pkgs/applications/misc/lenmus')
-rw-r--r-- | pkgs/applications/misc/lenmus/default.nix | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/pkgs/applications/misc/lenmus/default.nix b/pkgs/applications/misc/lenmus/default.nix new file mode 100644 index 0000000000000..976563d118560 --- /dev/null +++ b/pkgs/applications/misc/lenmus/default.nix @@ -0,0 +1,50 @@ +{ stdenv, pkgconfig, fetchFromGitHub +, cmake, boost +, portmidi, sqlite +, freetype, libpng, pngpp, zlib +, wxGTK30, wxsqlite3 +}: + +stdenv.mkDerivation rec { + name = "lenmus-${version}"; + version = "5.4.1"; + + src = fetchFromGitHub { + owner = "lenmus"; + repo = "lenmus"; + rev = "Release_${version}"; + sha256 = "03xar8x38x20cns2gnv34jp0hw0k16sa62kkfhka9iiiw90wfyrp"; + }; + + postPatch = '' + substituteInPlace CMakeLists.txt \ + --replace "DESTINATION \"/usr/share" "DESTINATION \"$out/share" + ''; + + cmakeFlags = [ + "-DCMAKE_INSALL_PREFIX=$out" + ]; + + enableParallelBuilding = true; + + buildInputs = [ + pkgconfig + cmake boost + portmidi sqlite + freetype libpng pngpp zlib + wxGTK30 wxsqlite3 + ]; + + meta = with stdenv.lib; { + description = "LenMus Phonascus is a program for learning music"; + longDescription = '' + LenMus Phonascus is a free open source program (GPL v3) for learning music. + It allows you to focus on specific skills and exercises, on both theory and aural training. + The different activities can be customized to meet your needs + ''; + homepage = "http://www.lenmus.org/"; + license = licenses.gpl3Plus; + maintainers = with maintainers; [ ramkromberg ]; + platforms = with platforms; linux; + }; +} |