From 8a4ce8cf34fdacf7fd914dd040c5123f10a4720f Mon Sep 17 00:00:00 2001 From: Jos van den Oever Date: Fri, 12 Sep 2014 12:14:14 +0200 Subject: [PATCH] Add MuseScore 1.3. --- lib/maintainers.nix | 1 + pkgs/applications/audio/musescore/default.nix | 33 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 3 files changed, 36 insertions(+) create mode 100644 pkgs/applications/audio/musescore/default.nix diff --git a/lib/maintainers.nix b/lib/maintainers.nix index c52b66380399..d8be8b77211e 100644 --- a/lib/maintainers.nix +++ b/lib/maintainers.nix @@ -118,6 +118,7 @@ ttuegel = "Thomas Tuegel "; tv = "Tomislav Viljetić "; urkud = "Yury G. Kudryashov "; + vandenoever = "Jos van den Oever "; vbmithr = "Vincent Bernardoff "; vcunat = "Vladimír Čunát "; viric = "Lluís Batlle i Rossell "; diff --git a/pkgs/applications/audio/musescore/default.nix b/pkgs/applications/audio/musescore/default.nix new file mode 100644 index 000000000000..a0bb87896582 --- /dev/null +++ b/pkgs/applications/audio/musescore/default.nix @@ -0,0 +1,33 @@ +{ stdenv, fetchurl, makeWrapper, cmake, qt4, pkgconfig, alsaLib, portaudio, jack2, libsndfile}: + +stdenv.mkDerivation rec { + name = "musescore-1.3"; + + src = fetchurl { + url = "http://ftp.osuosl.org/pub/musescore/releases/MuseScore-1.3/mscore-1.3.tar.bz2"; + sha256 = "a0b60cc892ac0266c58fc6392be72c0a21c3aa7fd0b6e4f1dddad1c8b36be683"; + }; + + buildInputs = [ makeWrapper cmake qt4 pkgconfig alsaLib portaudio jack2 libsndfile ]; + + configurePhase = '' + cd mscore; + mkdir build; + cd build; + cmake -DCMAKE_INSTALL_PREFIX=$out -DQT_PLUGINS_DIR=$out/lib/qt4/plugins -DCMAKE_BUILD_TYPE=Release ..''; + + preBuild = ''make lrelease;''; + + postInstall = '' + wrapProgram $out/bin/mscore --prefix QT_PLUGIN_PATH : $out/lib/qt4/plugins + ''; + + meta = with stdenv.lib; { + description = "Qt-based score editor"; + homepage = http://musescore.org/; + license = licenses.gpl2; + platforms = platforms.linux; + maintainers = [ stdenv.lib.maintainers.vandenoever ]; + repositories.git = https://github.com/musescore/MuseScore; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 3f04272a1be5..aca44f248081 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -9522,6 +9522,8 @@ let iceSupport = config.murmur.iceSupport or true; }; + musescore = callPackage ../applications/audio/musescore { }; + mutt = callPackage ../applications/networking/mailreaders/mutt { }; namecoin = callPackage ../applications/misc/namecoin { };