1 { lib, mkDerivation, fetchFromGitHub
2 , qmake, qtbase, pkg-config, taglib, libbass, libbass_fx }:
4 # TODO: get rid of (unfree) libbass
5 # issue:https://github.com/UltraStar-Deluxe/UltraStar-Creator/issues/3
6 # there’s a WIP branch here:
7 # https://github.com/UltraStar-Deluxe/UltraStar-Creator/commits/BASS_removed
10 pname = "ultrastar-creator";
11 version = "2019-04-23";
13 src = fetchFromGitHub {
14 owner = "UltraStar-Deluxe";
15 repo = "UltraStar-Creator";
16 rev = "36583b4e482b68f6aa949e77ef2744776aa587b1";
17 sha256 = "1rzz04l7s7pxj74xam0cxlq569lfpgig35kpbsplq531d4007pc9";
20 postPatch = with lib; ''
21 # we don’t want prebuild binaries checked into version control!
23 sed -e "s|DESTDIR =.*$|DESTDIR = $out/bin|" \
25 -e "/QMAKE_POST_LINK/d" \
26 -e "s|../include/bass|${getLib libbass}/include|g" \
27 -e "s|../include/bass_fx|${getLib libbass_fx}/include|g" \
28 -e "s|../include/taglib|${getLib taglib}/include|g" \
29 -i src/UltraStar-Creator.pro
36 nativeBuildInputs = [ qmake pkg-config ];
37 buildInputs = [ qtbase taglib libbass libbass_fx ];
40 description = "Ultrastar karaoke song creation tool";
41 homepage = "https://github.com/UltraStar-Deluxe/UltraStar-Creator";
42 license = licenses.gpl2;
43 maintainers = with maintainers; [ Profpatsch ];