1{
2 lib,
3 mkDerivation,
4 fetchFromGitHub,
5 qmake,
6 qtbase,
7 pkg-config,
8 taglib,
9 libbass,
10 libbass_fx,
11}:
12
13# TODO: get rid of (unfree) libbass
14# issue:https://github.com/UltraStar-Deluxe/UltraStar-Creator/issues/3
15# there’s a WIP branch here:
16# https://github.com/UltraStar-Deluxe/UltraStar-Creator/commits/BASS_removed
17
18mkDerivation {
19 pname = "ultrastar-creator";
20 version = "2019-04-23";
21
22 src = fetchFromGitHub {
23 owner = "UltraStar-Deluxe";
24 repo = "UltraStar-Creator";
25 rev = "36583b4e482b68f6aa949e77ef2744776aa587b1";
26 sha256 = "1rzz04l7s7pxj74xam0cxlq569lfpgig35kpbsplq531d4007pc9";
27 };
28
29 postPatch = ''
30 # we don’t want prebuilt binaries checked into version control!
31 rm -rf lib include
32 sed -e "s|DESTDIR =.*$|DESTDIR = $out/bin|" \
33 -e 's|-L".*unix"||' \
34 -e "/QMAKE_POST_LINK/d" \
35 -e "s|../include/bass|${lib.getLib libbass}/include|g" \
36 -e "s|../include/bass_fx|${lib.getLib libbass_fx}/include|g" \
37 -e "s|../include/taglib|${lib.getLib taglib}/include|g" \
38 -i src/UltraStar-Creator.pro
39 '';
40
41 preConfigure = ''
42 cd src
43 '';
44
45 nativeBuildInputs = [
46 qmake
47 pkg-config
48 ];
49 buildInputs = [
50 qtbase
51 taglib
52 libbass
53 libbass_fx
54 ];
55
56 meta = with lib; {
57 mainProgram = "UltraStar-Creator";
58 description = "Ultrastar karaoke song creation tool";
59 homepage = "https://github.com/UltraStar-Deluxe/UltraStar-Creator";
60 license = licenses.gpl2Only;
61 maintainers = with maintainers; [ Profpatsch ];
62 };
63}