nixpkgs/pkgs/development/libraries/drumstick/default.nix

49 lines
1.4 KiB
Nix
Raw Normal View History

2016-06-30 11:54:50 +00:00
{ stdenv, fetchurl, alsaLib, cmake, docbook_xsl, docbook_xml_dtd_45, doxygen
, fluidsynth, pkgconfig, qt5
}:
stdenv.mkDerivation rec {
name = "drumstick-${version}";
2017-03-12 17:55:30 +00:00
version = "1.1.0";
2016-06-30 11:54:50 +00:00
src = fetchurl {
url = "mirror://sourceforge/drumstick/${version}/${name}.tar.bz2";
2017-03-12 17:55:30 +00:00
sha256 = "13pkfqrav30bbcddgf1imd7jk6lpqbxkz1qv31718pdl446jq7df";
2016-06-30 11:54:50 +00:00
};
outputs = [ "out" "dev" "man" ];
enableParallelBuilding = true;
# Prevent the manpage builds from attempting to access the Internet.
prePatch = ''
substituteInPlace cmake_admin/CreateManpages.cmake --replace \
http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl \
${docbook_xsl}/xml/xsl/docbook/manpages/docbook.xsl
for xml in doc/*.xml.in; do
substituteInPlace "$xml" --replace \
http://www.docbook.org/xml/4.5/docbookx.dtd \
${docbook_xml_dtd_45}/xml/dtd/docbook/docbookx.dtd
done
'';
2017-03-12 17:55:30 +00:00
#Temporarily remove drumstick-piano; Gives segment fault. Submitted ticket
postInstall = ''
rm $out/bin/drumstick-vpiano
'';
nativeBuildInputs = [ cmake pkgconfig ];
2016-06-30 11:54:50 +00:00
buildInputs = [
2017-03-12 17:55:30 +00:00
alsaLib doxygen fluidsynth qt5.qtbase qt5.qtsvg
2016-06-30 11:54:50 +00:00
];
meta = with stdenv.lib; {
maintainers = with maintainers; [ solson ];
description = "MIDI libraries for Qt5/C++";
homepage = http://drumstick.sourceforge.net/;
license = licenses.gpl2Plus;
2017-03-12 17:55:30 +00:00
platforms = platforms.linux;
2016-06-30 11:54:50 +00:00
};
}