2019-10-08 13:06:38 +02:00
|
|
|
|
{ lib, mkDerivation, fetchFromGitHub
|
2017-06-18 23:32:30 +02:00
|
|
|
|
, qmake, qtbase, pkgconfig, taglib, libbass, libbass_fx }:
|
2017-06-14 11:29:31 +02:00
|
|
|
|
|
2019-05-07 01:32:50 +02:00
|
|
|
|
# TODO: get rid of (unfree) libbass
|
|
|
|
|
# issue:https://github.com/UltraStar-Deluxe/UltraStar-Creator/issues/3
|
|
|
|
|
# there’s a WIP branch here:
|
|
|
|
|
# https://github.com/UltraStar-Deluxe/UltraStar-Creator/commits/BASS_removed
|
|
|
|
|
|
2019-10-08 13:06:38 +02:00
|
|
|
|
mkDerivation {
|
2019-08-15 14:41:18 +02:00
|
|
|
|
pname = "ultrastar-creator";
|
2019-05-07 01:32:50 +02:00
|
|
|
|
version = "2019-04-23";
|
2017-06-14 11:29:31 +02:00
|
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
|
owner = "UltraStar-Deluxe";
|
|
|
|
|
repo = "UltraStar-Creator";
|
2019-05-07 01:32:50 +02:00
|
|
|
|
rev = "36583b4e482b68f6aa949e77ef2744776aa587b1";
|
|
|
|
|
sha256 = "1rzz04l7s7pxj74xam0cxlq569lfpgig35kpbsplq531d4007pc9";
|
2017-06-14 11:29:31 +02:00
|
|
|
|
};
|
|
|
|
|
|
2019-10-08 13:06:38 +02:00
|
|
|
|
postPatch = with lib; ''
|
2017-06-14 11:29:31 +02:00
|
|
|
|
# we don’t want prebuild binaries checked into version control!
|
|
|
|
|
rm -rf lib include
|
|
|
|
|
sed -e "s|DESTDIR =.*$|DESTDIR = $out/bin|" \
|
|
|
|
|
-e 's|-L".*unix"||' \
|
|
|
|
|
-e "/QMAKE_POST_LINK/d" \
|
|
|
|
|
-e "s|../include/bass|${getLib libbass}/include|g" \
|
|
|
|
|
-e "s|../include/bass_fx|${getLib libbass_fx}/include|g" \
|
|
|
|
|
-e "s|../include/taglib|${getLib taglib}/include|g" \
|
|
|
|
|
-i src/UltraStar-Creator.pro
|
|
|
|
|
'';
|
|
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
|
cd src
|
|
|
|
|
'';
|
|
|
|
|
|
2017-06-18 23:32:30 +02:00
|
|
|
|
nativeBuildInputs = [ qmake pkgconfig ];
|
2017-06-14 11:29:31 +02:00
|
|
|
|
buildInputs = [ qtbase taglib libbass libbass_fx ];
|
|
|
|
|
|
2019-10-08 13:06:38 +02:00
|
|
|
|
meta = with lib; {
|
2017-06-14 11:29:31 +02:00
|
|
|
|
description = "Ultrastar karaoke song creation tool";
|
|
|
|
|
homepage = https://github.com/UltraStar-Deluxe/UltraStar-Creator;
|
|
|
|
|
license = licenses.gpl2;
|
2018-02-12 07:18:12 +01:00
|
|
|
|
maintainers = with maintainers; [ Profpatsch ];
|
2017-06-14 11:29:31 +02:00
|
|
|
|
};
|
|
|
|
|
}
|