nixpkgs/pkgs/applications/audio/musescore/default.nix

32 lines
865 B
Nix
Raw Normal View History

2015-04-27 20:51:21 +01:00
{ stdenv, fetchurl, makeWrapper, cmake, qt5, pkgconfig, alsaLib, portaudio, jack2
, lame, libsndfile, libvorbis }:
2014-09-12 11:14:14 +01:00
stdenv.mkDerivation rec {
2015-04-27 20:51:21 +01:00
name = "musescore-${version}";
version = "2.0.0";
2014-09-12 11:14:14 +01:00
src = fetchurl {
2015-04-27 20:51:21 +01:00
url = "https://github.com/musescore/MuseScore/archive/v${version}.tar.gz";
sha256 = "1a4fz9pqwz59brfa7qn61364hyd07lsq3lflkzn1w2q21d7xd20w";
2014-09-12 11:14:14 +01:00
};
2015-04-27 20:51:21 +01:00
buildInputs = [
makeWrapper cmake qt5 pkgconfig alsaLib portaudio jack2 lame libsndfile libvorbis
];
2014-09-12 11:14:14 +01:00
2015-04-27 20:51:21 +01:00
patchPhase = ''
sed s,"/usr/local",$out, -i Makefile
2014-09-12 11:14:14 +01:00
'';
2015-04-27 20:51:21 +01:00
preBuild = "make lrelease";
2014-09-12 11:14:14 +01:00
meta = with stdenv.lib; {
description = "Qt-based score editor";
homepage = http://musescore.org/;
license = licenses.gpl2;
platforms = platforms.linux;
2015-04-27 20:51:21 +01:00
maintainers = [ maintainers.vandenoever ];
2014-09-12 11:14:14 +01:00
repositories.git = https://github.com/musescore/MuseScore;
};
}