summary refs log tree commit diff
path: root/pkgs/applications/audio/musescore/default.nix
blob: 7d4768d2332477d489818b3782274b8744652b9d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{ stdenv, fetchurl, makeWrapper, cmake, qt5, pkgconfig, alsaLib, portaudio, jack2
, lame, libsndfile, libvorbis }:

stdenv.mkDerivation rec {
  name = "musescore-${version}";
  version = "2.0.0";

  src = fetchurl {
    url = "https://github.com/musescore/MuseScore/archive/v${version}.tar.gz";
    sha256 = "1a4fz9pqwz59brfa7qn61364hyd07lsq3lflkzn1w2q21d7xd20w";
  };

  buildInputs = [
    makeWrapper cmake qt5 pkgconfig alsaLib portaudio jack2 lame libsndfile libvorbis
  ];

  patchPhase = ''
    sed s,"/usr/local",$out, -i Makefile
  '';

  preBuild = "make lrelease";

  meta = with stdenv.lib; {
    description = "Qt-based score editor";
    homepage = http://musescore.org/;
    license = licenses.gpl2;
    platforms = platforms.linux;
    maintainers = [ maintainers.vandenoever ];
    repositories.git = https://github.com/musescore/MuseScore;
  };
}