Skip to content

Instantly share code, notes, and snippets.

Created March 12, 2017 17:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/ef05fe40f14c5282f159d684977a6ab6 to your computer and use it in GitHub Desktop.
Save anonymous/ef05fe40f14c5282f159d684977a6ab6 to your computer and use it in GitHub Desktop.
{ stdenv, fetchurl, alsaLib, cmake, docbook_xsl, docbook_xml_dtd_45, doxygen
, fluidsynth, pkgconfig, qt5, drumstick
}:
stdenv.mkDerivation rec {
name = "drumstick-${version}";
version = "1.1.0";
src = fetchurl {
url = "mirror://sourceforge/drumstick/${version}/${name}.tar.bz2";
sha256 = "13pkfqrav30bbcddgf1imd7jk6lpqbxkz1qv31718pdl446jq7df";
};
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
'';
#Temporarily remove drumstick-piano; Gives segment fault. Submitted ticket
postInstall = ''
rm ${drumstick}/bin/drumstick-vpiano
'';
nativeBuildInputs = [ cmake pkgconfig ];
buildInputs = [
alsaLib doxygen fluidsynth qt5.qtbase qt5.qtsvg
];
meta = with stdenv.lib; {
maintainers = with maintainers; [ solson ];
description = "MIDI libraries for Qt5/C++";
homepage = http://drumstick.sourceforge.net/;
license = licenses.gpl2Plus;
platforms = platforms.linux;
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment