python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / tools / misc / ultrastar-creator / default.nix
blob990547291f61af1a84dbda9c57a33b56f74e2540
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
9 mkDerivation {
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";
18   };
20   postPatch = with lib; ''
21     # we don’t want prebuild binaries checked into version control!
22     rm -rf lib include
23     sed -e "s|DESTDIR =.*$|DESTDIR = $out/bin|" \
24         -e 's|-L".*unix"||' \
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
30   '';
32   preConfigure = ''
33     cd src
34   '';
36   nativeBuildInputs = [ qmake pkg-config ];
37   buildInputs = [ qtbase taglib libbass libbass_fx ];
39   meta = with lib; {
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 ];
44   };