git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #16931 from RamKromberg/init/lenmus

lenmus: init at 5.4.1

commit641c535bd55c60ed911883aa518a884fc1a39e62 authorFrederik Rietdijk <freddyrietdijk@fridh.nl> dateFri 15 Jul 2016, 11:36 (10 years ago) parent7d69e5d697f0df
2 files changed+51
pkgs/applications/misc/lenmus/default.nix+50 pkgs/top-level/all-packages.nix+1
pkgs/applications/misc/lenmus/default.nixnew file+50
@@ -0,0 +1,50 @@
1+{ stdenv, pkgconfig, fetchFromGitHub
2+, cmake, boost
3+, portmidi, sqlite
4+, freetype, libpng, pngpp, zlib
5+, wxGTK30, wxsqlite3
6+}:
7+
8+stdenv.mkDerivation rec {
9+ name = "lenmus-${version}";
10+ version = "5.4.1";
11+
12+ src = fetchFromGitHub {
13+ owner = "lenmus";
14+ repo = "lenmus";
15+ rev = "Release_${version}";
16+ sha256 = "03xar8x38x20cns2gnv34jp0hw0k16sa62kkfhka9iiiw90wfyrp";
17+ };
18+
19+ postPatch = ''
20+ substituteInPlace CMakeLists.txt \
21+ --replace "DESTINATION \"/usr/share" "DESTINATION \"$out/share"
22+ '';
23+
24+ cmakeFlags = [
25+ "-DCMAKE_INSALL_PREFIX=$out"
26+ ];
27+
28+ enableParallelBuilding = true;
29+
30+ buildInputs = [
31+ pkgconfig
32+ cmake boost
33+ portmidi sqlite
34+ freetype libpng pngpp zlib
35+ wxGTK30 wxsqlite3
36+ ];
37+
38+ meta = with stdenv.lib; {
39+ description = "LenMus Phonascus is a program for learning music";
40+ longDescription = ''
41+ LenMus Phonascus is a free open source program (GPL v3) for learning music.
42+ It allows you to focus on specific skills and exercises, on both theory and aural training.
43+ The different activities can be customized to meet your needs
44+ '';
45+ homepage = "http://www.lenmus.org/";
46+ license = licenses.gpl3Plus;
47+ maintainers = with maintainers; [ ramkromberg ];
48+ platforms = with platforms; linux;
49+ };
50+}
pkgs/top-level/all-packages.nix+1
@@ -6418,6 +6418,7 @@ in
64186418
64196419 lemon = callPackage ../development/tools/parsing/lemon { };
64206420
6421+ lenmus = callPackage ../applications/misc/lenmus { };
64216422
64226423 libtool = self.libtool_2;
64236424