diff --git a/pkgs/applications/audio/cantata/default.nix b/pkgs/applications/audio/cantata/default.nix index 35fe510cbb2b5..57d8b554c4f23 100644 --- a/pkgs/applications/audio/cantata/default.nix +++ b/pkgs/applications/audio/cantata/default.nix @@ -1,6 +1,5 @@ { stdenv, fetchFromGitHub, cmake, pkgconfig, vlc -, withQt4 ? false, qt4 -, withQt5 ? true, qtbase, qtmultimedia, qtsvg, qttools +, qtbase, qtmultimedia, qtsvg, qttools # Cantata doesn't build with cdparanoia enabled so we disable that # default for now until I (or someone else) figure it out. @@ -19,11 +18,6 @@ , withStreams ? true }: -# One and only one front-end. -assert withQt5 -> withQt4 == false; -assert withQt4 -> withQt5 == false; -assert withQt4 || withQt5; - # Inter-dependencies. assert withCddb -> withCdda && withTaglib; assert withCdda -> withCddb && withMusicbrainz; @@ -51,9 +45,7 @@ in stdenv.mkDerivation rec { sha256 = "1b633chgfs8rya78bzzck5zijna15d1y4nmrz4dcjp862ks5y5q6"; }; - buildInputs = [ vlc ] - ++ stdenv.lib.optional withQt4 qt4 - ++ stdenv.lib.optionals withQt5 [ qtbase qtmultimedia qtsvg qttools ] + buildInputs = [ vlc qtbase qtmultimedia qtsvg ] ++ stdenv.lib.optionals withTaglib [ taglib taglib_extras ] ++ stdenv.lib.optionals withReplaygain [ ffmpeg speex mpg123 ] ++ stdenv.lib.optional withCdda cdparanoia @@ -63,12 +55,11 @@ in stdenv.mkDerivation rec { ++ stdenv.lib.optional withMusicbrainz libmusicbrainz5 ++ stdenv.lib.optional withUdisks udisks2; - nativeBuildInputs = [ cmake pkgconfig ]; + nativeBuildInputs = [ cmake pkgconfig qttools ]; enableParallelBuilding = true; cmakeFlags = stdenv.lib.flatten [ - (fstat withQt5 "QT5") (fstats withTaglib [ "TAGLIB" "TAGLIB_EXTRAS" ]) (fstats withReplaygain [ "FFMPEG" "MPG123" "SPEEXDSP" ]) (fstat withCdda "CDPARANOIA") diff --git a/pkgs/applications/audio/mixxx/default.nix b/pkgs/applications/audio/mixxx/default.nix index 6d353344b07fb..08943ca196aa1 100644 --- a/pkgs/applications/audio/mixxx/default.nix +++ b/pkgs/applications/audio/mixxx/default.nix @@ -1,6 +1,8 @@ -{ stdenv, fetchurl, chromaprint, fetchpatch, fftw, flac, libid3tag, libmad -, libopus, libshout, libsndfile, libusb1, libvorbis, pkgconfig -, portaudio, portmidi, protobuf, qt4, rubberband, scons, sqlite +{ stdenv, fetchFromGitHub, fetchpatch, pkgconfig, scons +, qtbase, qttools, qtscript, qtsvg, qtxmlpatterns +, chromaprint, fftw, flac, libid3tag, libmad +, libopus, libshout, libsndfile, libusb1, libvorbis, mesa +, portaudio, portmidi, protobuf, rubberband, sqlite , taglib, vampSDK }: @@ -8,9 +10,11 @@ stdenv.mkDerivation rec { name = "mixxx-${version}"; version = "2.0.0"; - src = fetchurl { - url = "http://downloads.mixxx.org/${name}/${name}-src.tar.gz"; - sha256 = "0vb71w1yq0xwwsclrn2jj9bk8w4n14rfv5c0aw46c11mp8xz7f71"; + src = fetchFromGitHub { + owner = "mixxxdj"; + repo = "mixxx"; + rev = "release-${version}"; + sha256 = "0pipmkv5fig2pajlh5nnmxyfil7mv5l86cw6rh8jbkcr9hman9bp"; }; patches = [ @@ -27,35 +31,46 @@ stdenv.mkDerivation rec { buildInputs = [ chromaprint fftw flac libid3tag libmad libopus libshout libsndfile - libusb1 libvorbis pkgconfig portaudio portmidi protobuf qt4 - rubberband scons sqlite taglib vampSDK + libusb1 libvorbis mesa portaudio portmidi protobuf + rubberband sqlite taglib vampSDK + qtbase qtscript qtsvg qtxmlpatterns ]; + nativeBuildInputs = [ + pkgconfig qttools scons + ]; + + enableParallelBuilding = true; + sconsFlags = [ "build=release" - "qtdir=${qt4}" + "qt5=1" ]; buildPhase = '' runHook preBuild + mkdir -p "$out" scons \ -j$NIX_BUILD_CORES -l$NIX_BUILD_CORES \ $sconsFlags "prefix=$out" + runHook postBuild ''; installPhase = '' runHook preInstall + scons $sconsFlags "prefix=$out" install + runHook postInstall ''; meta = with stdenv.lib; { - homepage = https://mixxx.org; description = "Digital DJ mixing software"; + homepage = https://mixxx.org; license = licenses.gpl2Plus; - maintainers = [ maintainers.aszlig maintainers.goibhniu ]; + maintainers = with maintainers; [ aszlig goibhniu ]; platforms = platforms.linux; }; } diff --git a/pkgs/development/libraries/openscenegraph/default.nix b/pkgs/development/libraries/openscenegraph/default.nix index 8d0839041890a..2dac31344b5ee 100644 --- a/pkgs/development/libraries/openscenegraph/default.nix +++ b/pkgs/development/libraries/openscenegraph/default.nix @@ -1,29 +1,35 @@ -{ stdenv, lib, fetchurl, cmake, pkgconfig, doxygen, unzip -, freetype, libjpeg, jasper, libxml2, zlib, gdal, curl, libX11 -, cairo, poppler, librsvg, libpng, libtiff, libXrandr -, xineLib, boost +{ stdenv, lib, fetchFromGitHub, cmake, pkgconfig, doxygen +, freetype, libjpeg, jasper, libxml2, zlib, gdal, curl, libX11, libpthreadstubs +, cairo, poppler, librsvg, libpng, libtiff, libXrandr, libXdmcp +, pcre, xineLib, boost , withApps ? false -, withSDL ? false, SDL -, withQt4 ? false, qt4 +, withSDL ? false, SDL +, withQt ? false, qtbase }: stdenv.mkDerivation rec { name = "openscenegraph-${version}"; - version = "3.4.0"; + version = "3.4.1"; - src = fetchurl { - url = "http://trac.openscenegraph.org/downloads/developer_releases/OpenSceneGraph-${version}.zip"; - sha256 = "03h4wfqqk7rf3mpz0sa99gy715cwpala7964z2npd8jxfn27swjw"; + src = fetchFromGitHub rec { + owner = "openscenegraph"; + repo = "OpenSceneGraph"; + rev = "${repo}-${version}"; + sha256 = "1fbzg1ihjpxk6smlq80p3h3ggllbr16ihd2fxpfwzam8yr8yxip9"; }; - nativeBuildInputs = [ pkgconfig cmake doxygen unzip ]; + # The Qt OpenGL module is deprecated and now part of Qt GUI + postPatch = "substituteInPlace src/osgQt/CMakeLists.txt --replace OpenGL ''"; + + nativeBuildInputs = [ cmake doxygen pkgconfig ]; buildInputs = [ - freetype libjpeg jasper libxml2 zlib gdal curl libX11 - cairo poppler librsvg libpng libtiff libXrandr boost - xineLib + freetype libjpeg jasper libxml2 zlib gdal curl + cairo poppler librsvg libpng libtiff boost + pcre xineLib + libpthreadstubs libX11 libXdmcp libXrandr ] ++ lib.optional withSDL SDL - ++ lib.optional withQt4 qt4; + ++ lib.optional withQt qtbase; enableParallelBuilding = true; @@ -31,9 +37,9 @@ stdenv.mkDerivation rec { meta = with stdenv.lib; { description = "A 3D graphics toolkit"; - homepage = http://www.openscenegraph.org/; - maintainers = [ maintainers.raskin ]; - platforms = platforms.linux; - license = "OpenSceneGraph Public License - free LGPL-based license"; + homepage = http://www.openscenegraph.org/; + license = "OpenSceneGraph Public License - free LGPL-based license"; + maintainers = with maintainers; [ raskin ]; + platforms = platforms.linux; }; } diff --git a/pkgs/development/libraries/simgear/default.nix b/pkgs/development/libraries/simgear/default.nix index d724ebbf37388..72d395a89ed3f 100644 --- a/pkgs/development/libraries/simgear/default.nix +++ b/pkgs/development/libraries/simgear/default.nix @@ -1,22 +1,27 @@ -{ stdenv, fetchurl, plib, freeglut, xproto, libX11, libXext, xextproto, libXi +{ stdenv, fetchFromGitHub, cmake +, plib, freeglut, xproto, libX11, libXext, xextproto, libXi , inputproto, libICE, libSM, libXt, libXmu, mesa, boost, zlib, libjpeg, freealut -, openscenegraph, openal, expat, cmake, apr -, curl +, openscenegraph, openal, expat, curl, apr }: stdenv.mkDerivation rec { name = "simgear-${version}"; - version = "2017.3.1"; - shortVersion = "2017.3"; + version = "2017.4.0"; - src = fetchurl { - url = "mirror://sourceforge/flightgear/release-${shortVersion}/${name}.tar.bz2"; - sha256 = "1x71wvycs2bjgmmacswgk6091p65p46fr40mr7f4kcipnx88bq0f"; + src = fetchFromGitHub { + owner = "FlightGear"; + repo = "simgear"; + rev = "version/${version}"; + sha256 = "0p2ww4iadafz95wqjh8l8lvhzx6jbz85nw6kfaqi8j1sif0m9vwm"; }; - buildInputs = [ plib freeglut xproto libX11 libXext xextproto libXi inputproto - libICE libSM libXt libXmu mesa boost zlib libjpeg freealut - openscenegraph openal expat cmake apr curl ]; + buildInputs = [ + plib freeglut xproto libX11 libXext xextproto libXi inputproto + libICE libSM libXt libXmu mesa boost zlib libjpeg freealut + openscenegraph openal expat apr curl + ]; + + nativeBuildInputs = [ cmake ]; enableParallelBuilding = true; @@ -28,4 +33,3 @@ stdenv.mkDerivation rec { license = licenses.lgpl2; }; } - diff --git a/pkgs/development/tools/misc/xxdiff/default.nix b/pkgs/development/tools/misc/xxdiff/default.nix index 51f4de8eacced..21164f1537672 100644 --- a/pkgs/development/tools/misc/xxdiff/default.nix +++ b/pkgs/development/tools/misc/xxdiff/default.nix @@ -1,28 +1,35 @@ -{ stdenv, fetchurl, qt4, flex, bison, docutils }: +{ stdenv, fetchFromBitbucket, qtbase, flex, bison, docutils }: stdenv.mkDerivation rec { - name = "xxdiff-4.0.1"; + name = "xxdiff-4.0.1.20170623"; - src = fetchurl { - url = "mirror://sourceforge/xxdiff/${name}.tar.bz2"; - sha256 = "0050qd12fvlcfdh0iwjsaxgxdq7jsl70f85fbi7pz23skpddsn5z"; + src = fetchFromBitbucket { + owner = "blais"; + repo = "xxdiff"; + rev = "5e5f885dfc43559549a81c59e9e8c9525306356a"; + sha256 = "0gbvxrkwkbvag3298j89smszghpr8ilxxfb0cvsknfqdf15b296w"; }; - nativeBuildInputs = [ flex bison qt4 docutils ]; + nativeBuildInputs = [ flex bison docutils ]; - buildInputs = [ qt4 ]; + buildInputs = [ qtbase ]; - QMAKE = "qmake"; + NIX_CFLAGS_COMPILE = "-std=c++11"; - configurePhase = "cd src; make -f Makefile.bootstrap"; + preConfigure = '' + cd src + make -f Makefile.bootstrap + ''; - installPhase = "mkdir -pv $out/bin; cp -v ../bin/xxdiff $out/bin"; + postInstall = '' + install -Dm755 ../bin/xxdiff $out/bin/xxdiff + ''; meta = with stdenv.lib; { homepage = http://furius.ca/xxdiff/; description = "Graphical file and directories comparator and merge tool"; license = licenses.gpl2; platforms = platforms.linux; - maintainers = with maintainers; [ pSub ]; + maintainers = with maintainers; [ pSub raskin ]; }; } diff --git a/pkgs/development/tools/misc/xxdiff/tip.nix b/pkgs/development/tools/misc/xxdiff/tip.nix deleted file mode 100644 index d3b69901ed8ab..0000000000000 --- a/pkgs/development/tools/misc/xxdiff/tip.nix +++ /dev/null @@ -1,33 +0,0 @@ -{ stdenv, fetchFromBitbucket, qtbase, flex, bison, docutils }: - -stdenv.mkDerivation rec { - name = "xxdiff-4.0.1.20170623"; - - src = fetchFromBitbucket { - owner = "blais"; - repo = "xxdiff"; - rev = "5e5f885dfc43559549a81c59e9e8c9525306356a"; - sha256 = "0gbvxrkwkbvag3298j89smszghpr8ilxxfb0cvsknfqdf15b296w"; - }; - - nativeBuildInputs = [ flex bison docutils ]; - - buildInputs = [ qtbase ]; - - preConfigure = '' - cd src - make -f Makefile.bootstrap - ''; - - postInstall = '' - install -D ../bin/xxdiff $out/bin/xxdiff - ''; - - meta = with stdenv.lib; { - homepage = http://furius.ca/xxdiff/; - description = "Graphical file and directories comparator and merge tool"; - license = licenses.gpl2; - platforms = platforms.linux; - maintainers = with maintainers; [ pSub raskin ]; - }; -} diff --git a/pkgs/games/openmw/default.nix b/pkgs/games/openmw/default.nix index 53c2cc5d073a7..8a6da395bf218 100644 --- a/pkgs/games/openmw/default.nix +++ b/pkgs/games/openmw/default.nix @@ -1,36 +1,48 @@ -{ stdenv, fetchFromGitHub, qt4, openscenegraph, mygui, bullet, ffmpeg, boost, cmake, SDL2, unshield, openal -, giflib, libXt, pkgconfig }: +{ stdenv, fetchFromGitHub, cmake, doxygen, pkgconfig +, qtbase, openscenegraph, mygui, bullet, ffmpeg, boost, SDL2, unshield, openal +, giflib, libXt }: let openscenegraph_ = openscenegraph.overrideDerivation (self: { + name = "openmw-openscenegraph"; + src = fetchFromGitHub { - owner = "OpenMW"; - repo = "osg"; - rev = "35f1a459a4ab6da9d70427e6539bdf4faae4cc91"; - sha256 = "1s3a9dpbcc6v8d05pqin4xfv36i2031xpdja1vl8x11cw05fln91"; + owner = "OpenMW"; + repo = "osg"; + rev = "b6ec7bb7a4cd06ae95bda087d48c0fb7d5ca0abf"; + sha256 = "0j33wvrmy1ncrn4s7xznpy6qbarlaninil8da9xgpkh9lr7hj2bw"; }; }); + in stdenv.mkDerivation rec { - version = "0.42.0"; + version = "0.43.0"; name = "openmw-${version}"; src = fetchFromGitHub { - owner = "OpenMW"; - repo = "openmw"; - rev = name; - sha256 = "0lj8v81hk807dy0wcdhfp0iyn4l5yag53hx1a6xm44gh2dpyil43"; + owner = "OpenMW"; + repo = "openmw"; + rev = name; + sha256 = "1nybxwp77qswjayf0g9xayp4x1xxq799681rhjlggch127r07ifi"; }; enableParallelBuilding = true; - nativeBuildInputs = [ pkgconfig ]; - buildInputs = [ cmake boost ffmpeg qt4 bullet mygui openscenegraph_ SDL2 unshield openal libXt ]; + nativeBuildInputs = [ cmake doxygen pkgconfig ]; + + buildInputs = [ + qtbase + boost bullet ffmpeg libXt mygui openal openscenegraph_ SDL2 unshield + ]; + + cmakeFlags = [ + "-DDESIRED_QT_VERSION=5" + ]; meta = with stdenv.lib; { description = "An unofficial open source engine reimplementation of the game Morrowind"; - homepage = http://openmw.org; - license = licenses.gpl3; - platforms = platforms.linux; + homepage = http://openmw.org; + license = licenses.gpl3; maintainers = with maintainers; [ abbradar ]; + platforms = platforms.linux; }; } diff --git a/pkgs/os-specific/linux/i7z/default.nix b/pkgs/os-specific/linux/i7z/default.nix index 6d0c5ae82bccd..784030e9ab755 100644 --- a/pkgs/os-specific/linux/i7z/default.nix +++ b/pkgs/os-specific/linux/i7z/default.nix @@ -1,36 +1,31 @@ -{ stdenv, fetchurl, qt4, ncurses }: +{ stdenv, fetchFromGitHub, ncurses }: stdenv.mkDerivation rec { - name = "i7z-0.27.2"; + name = "i7z-93"; - src = fetchurl { - url = "https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/i7z/${name}.tar.gz"; - sha256 = "1wa7ix6m75wl3k2n88sz0x8cckvlzqklja2gvzqfw5rcfdjjvxx7"; + src = fetchFromGitHub { + owner = "ajaiantilal"; + repo = "i7z"; + rev = "5023138d7c35c4667c938b853e5ea89737334e92"; + sha256 = "0z0aqj79cbwwx3q600nwf3nixgihvcngrgkcn1xw6wpl9rpxpzjk"; }; - buildInputs = [ qt4 ncurses ]; + # The GUI is qt4 only so we do not build it as qt4 is deprecated - buildPhase = '' - make - cd GUI - qmake - make clean - make - cd .. - ''; + buildInputs = [ ncurses ]; + + enableParallelBuilding = true; - installPhase = '' - mkdir -p $out/sbin - make install prefix=$out - install -Dm755 GUI/i7z_GUI $out/sbin/i7z-gui + postPatch = '' + sed -i Makefile -e "s,^prefix.*,prefix = $out," ''; - meta = { - description = "A better i7 (and now i3, i5) reporting tool for Linux"; + meta = with stdenv.lib; { + description = "A better i3, i5 and i7 reporting tool for Linux"; homepage = https://github.com/ajaiantilal/i7z; repositories.git = https://github.com/ajaiantilal/i7z.git; - license = stdenv.lib.licenses.gpl2; - maintainers = [ stdenv.lib.maintainers.bluescreen303 ]; - platforms = stdenv.lib.platforms.linux; + license = licenses.gpl2; + maintainers = with maintainers; [ bluescreen303 ]; + platforms = platforms.linux; }; } diff --git a/pkgs/tools/misc/qjoypad/default.nix b/pkgs/tools/misc/qjoypad/default.nix index 6a5e674b698bc..9249eb92d1fef 100644 --- a/pkgs/tools/misc/qjoypad/default.nix +++ b/pkgs/tools/misc/qjoypad/default.nix @@ -1,19 +1,24 @@ -{ stdenv, fetchurl, pkgconfig, libX11, libXtst, qt4 }: +{ stdenv, fetchFromGitHub, cmake, pkgconfig +, libX11, libXtst, qtbase, qttools, qtx11extras }: + stdenv.mkDerivation rec { - name = "qjoypad-4.1.0"; - src = fetchurl { - url = "mirror://sourceforge/qjoypad/${name}.tar.gz"; - sha256 = "1jlm7i26nfp185xrl41kz5z6fgvyj51bjpz48cg27xx64y40iamm"; + name = "qjoypad-${version}"; + version = "4.3.0"; + + src = fetchFromGitHub { + owner = "panzi"; + repo = "qjoypad"; + rev = "v${version}"; + sha256 = "0ps85ncqmy8jz3zzyv5f5z4564kkgcl799ri4kcz407mjyc4fvs6"; }; - nativeBuildInputs = [ pkgconfig ]; - buildInputs = [ libX11 libXtst qt4 ]; - patchPhase = '' - cd src - substituteInPlace config --replace /bin/bash /bin/sh - mkdir -p $out - export NIX_LDFLAGS="$NIX_LDFLAGS -rpath ${libX11}/lib" - ''; - meta = { + + nativeBuildInputs = [ cmake pkgconfig qttools ]; + + buildInputs = [ qtbase qtx11extras libXtst ]; + + enableParallelBuilding = true; + + meta = with stdenv.lib; { description = "A program that lets you use gaming devices anywhere"; longDescription = '' A simple Linux/QT program that lets you use your gaming devices @@ -31,9 +36,9 @@ stdenv.mkDerivation rec { of gaming devices in Linux, and makes the Linux gaming experience just a little bit nicer. ''; - homepage = http://qjoypad.sourceforge.net; - license = stdenv.lib.licenses.gpl2; - maintainers = with stdenv.lib.maintainers; [ astsmtl ]; - platforms = with stdenv.lib.platforms; linux; + homepage = https://github.com/panzi/qjoypad; + license = licenses.gpl2; + maintainers = with maintainers; [ astsmtl ]; + platforms = platforms.linux; }; } diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 547e0704d398e..1b49e7ed530ab 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1220,7 +1220,7 @@ with pkgs; mpdris2 = callPackage ../tools/audio/mpdris2 { }; nfdump = callPackage ../tools/networking/nfdump { }; - + nrsc5 = callPackage ../applications/misc/nrsc5 { }; onboard = callPackage ../applications/misc/onboard { }; @@ -4205,7 +4205,7 @@ with pkgs; qhull = callPackage ../development/libraries/qhull { }; - qjoypad = callPackage ../tools/misc/qjoypad { }; + qjoypad = libsForQt5.callPackage ../tools/misc/qjoypad { }; qpdf = callPackage ../development/libraries/qpdf { }; @@ -7889,10 +7889,8 @@ with pkgs; xpwn = callPackage ../development/mobile/xpwn {}; - xxdiff = callPackage ../development/tools/misc/xxdiff { - bison = bison2; - }; - xxdiff-tip = qt56.callPackage ../development/tools/misc/xxdiff/tip.nix { }; + xxdiff = libsForQt5.callPackage ../development/tools/misc/xxdiff { }; + xxdiff-tip = xxdiff; yacc = bison; @@ -10290,6 +10288,8 @@ with pkgs; openscenegraph = callPackage ../development/libraries/openscenegraph { }; + openscenegraph-qt5 = libsForQt5.callPackage ../development/libraries/openscenegraph { withQt = true; }; + openslp = callPackage ../development/libraries/openslp {}; openvdb = callPackage ../development/libraries/openvdb {}; @@ -15904,7 +15904,7 @@ with pkgs; mirage = callPackage ../applications/graphics/mirage { }; - mixxx = callPackage ../applications/audio/mixxx { + mixxx = libsForQt5.callPackage ../applications/audio/mixxx { inherit (vamp) vampSDK; }; @@ -18222,7 +18222,7 @@ with pkgs; openjk = callPackage ../games/openjk { }; - openmw = callPackage ../games/openmw { }; + openmw = libsForQt5.callPackage ../games/openmw { }; openmw-tes3mp = libsForQt5.callPackage ../games/openmw/tes3mp.nix { stdenv = overrideCC stdenv gcc7;