diff options
author | Orivej Desh <orivej@gmx.fr> | 2017-08-28 10:52:18 +0000 |
---|---|---|
committer | Orivej Desh <orivej@gmx.fr> | 2017-08-28 11:24:54 +0000 |
commit | 1475b0f0df52d0bf93be3e1c1d519c8b4379b24a (patch) | |
tree | 045074df0f9467369bd2775a6766df19d33ea4c6 /pkgs/applications/audio/clementine/default.nix | |
parent | 8991610fbcdb9596dadf2a1b6a563ebd2d85cc8b (diff) | |
download | nixpkgs-1475b0f0df52d0bf93be3e1c1d519c8b4379b24a.tar nixpkgs-1475b0f0df52d0bf93be3e1c1d519c8b4379b24a.tar.gz nixpkgs-1475b0f0df52d0bf93be3e1c1d519c8b4379b24a.tar.bz2 nixpkgs-1475b0f0df52d0bf93be3e1c1d519c8b4379b24a.tar.lz nixpkgs-1475b0f0df52d0bf93be3e1c1d519c8b4379b24a.tar.xz nixpkgs-1475b0f0df52d0bf93be3e1c1d519c8b4379b24a.tar.zst nixpkgs-1475b0f0df52d0bf93be3e1c1d519c8b4379b24a.zip |
clementine: fix build with gcc6
Diffstat (limited to 'pkgs/applications/audio/clementine/default.nix')
-rw-r--r-- | pkgs/applications/audio/clementine/default.nix | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/pkgs/applications/audio/clementine/default.nix b/pkgs/applications/audio/clementine/default.nix index 5b0d285f82d..d916b8957e6 100644 --- a/pkgs/applications/audio/clementine/default.nix +++ b/pkgs/applications/audio/clementine/default.nix @@ -1,6 +1,6 @@ { stdenv, fetchurl, boost, cmake, chromaprint, gettext, gst_all_1, liblastfm , qt4, taglib, fftw, glew, qjson, sqlite, libgpod, libplist, usbmuxd, libmtp -, libpulseaudio, gvfs, libcdio, libechonest, libspotify, pcre, protobuf +, libpulseaudio, gvfs, libcdio, libechonest, libspotify, pcre, projectm, protobuf , qca2, pkgconfig, sparsehash, config, makeWrapper, runCommand, gst_plugins }: let @@ -26,9 +26,10 @@ let ./clementine-spotify-blob-remove-from-build.patch ]; + nativeBuildInputs = [ cmake pkgconfig ]; + buildInputs = [ boost - cmake chromaprint fftw gettext @@ -40,7 +41,7 @@ let liblastfm libpulseaudio pcre - pkgconfig + projectm protobuf qca2 qjson @@ -55,7 +56,10 @@ let free = stdenv.mkDerivation { name = "clementine-free-${version}"; - inherit patches src buildInputs; + inherit src patches nativeBuildInputs buildInputs; + + cmakeFlags = [ "-DUSE_SYSTEM_PROJECTM=ON" ]; + enableParallelBuilding = true; postPatch = '' sed -i src/CMakeLists.txt \ @@ -76,7 +80,7 @@ let blob = stdenv.mkDerivation { name = "clementine-blob-${version}"; # Use the same patches and sources as Clementine - inherit src; + inherit src nativeBuildInputs; patches = [ ./clementine-spotify-blob.patch @@ -114,15 +118,13 @@ runCommand "clementine-${version}" dontPatchELF = true; dontStrip = true; meta = { - homepage = http://www.clementine-player.org; description = "A multiplatform music player" + " (" + (optionalString withSpotify "with Spotify, ") + "with gstreamer plugins: " + concatStrings (intersperse ", " (map (x: x.name) gst_plugins)) + ")"; license = licenses.gpl3Plus; - platforms = platforms.linux; - maintainers = [ maintainers.ttuegel ]; + inherit (free.meta) homepage platforms maintainers; }; } '' |