Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

64 lines
1.5 KiB
Nix
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{
lib,
mkDerivation,
fetchFromGitHub,
qmake,
qtbase,
pkg-config,
taglib,
libbass,
libbass_fx,
}:
# TODO: get rid of (unfree) libbass
# issue:https://github.com/UltraStar-Deluxe/UltraStar-Creator/issues/3
# theres a WIP branch here:
# https://github.com/UltraStar-Deluxe/UltraStar-Creator/commits/BASS_removed
mkDerivation {
pname = "ultrastar-creator";
version = "2019-04-23";
src = fetchFromGitHub {
owner = "UltraStar-Deluxe";
repo = "UltraStar-Creator";
rev = "36583b4e482b68f6aa949e77ef2744776aa587b1";
sha256 = "1rzz04l7s7pxj74xam0cxlq569lfpgig35kpbsplq531d4007pc9";
};
postPatch = ''
# we dont want prebuilt 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|${lib.getLib libbass}/include|g" \
-e "s|../include/bass_fx|${lib.getLib libbass_fx}/include|g" \
-e "s|../include/taglib|${lib.getLib taglib}/include|g" \
-i src/UltraStar-Creator.pro
'';
preConfigure = ''
cd src
'';
nativeBuildInputs = [
qmake
pkg-config
];
buildInputs = [
qtbase
taglib
libbass
libbass_fx
];
meta = with lib; {
mainProgram = "UltraStar-Creator";
description = "Ultrastar karaoke song creation tool";
homepage = "https://github.com/UltraStar-Deluxe/UltraStar-Creator";
license = licenses.gpl2Only;
maintainers = with maintainers; [ Profpatsch ];
};
}