From a847dccf45c1ff7c74221a782c42711481387b58 Mon Sep 17 00:00:00 2001 From: Bernard Fortz Date: Fri, 31 Aug 2018 14:38:54 +0200 Subject: [PATCH] mixxx 2.1.3: Fixed glibc locale bug --- pkgs/applications/audio/mixxx/default.nix | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/audio/mixxx/default.nix b/pkgs/applications/audio/mixxx/default.nix index 746e306d3771..f3318a7866b4 100644 --- a/pkgs/applications/audio/mixxx/default.nix +++ b/pkgs/applications/audio/mixxx/default.nix @@ -1,4 +1,5 @@ -{ stdenv, fetchFromGitHub, chromaprint, fetchpatch, fftw, flac, faad2, mp4v2 +{ stdenv, fetchFromGitHub, makeWrapper, chromaprint, fetchpatch +, fftw, flac, faad2, glibcLocales, mp4v2 , libid3tag, libmad, libopus, libshout, libsndfile, libusb1, libvorbis , pkgconfig, portaudio, portmidi, protobuf, qt4, rubberband, scons, sqlite , taglib, upower, vampSDK @@ -15,8 +16,10 @@ stdenv.mkDerivation rec { sha256 = "1fm8lkbnxka4haidf6yr8mb3r6vaxmc97hhrp8pcx0fvq2mnzvy2"; }; + nativeBuildInputs = [ makeWrapper ]; + buildInputs = [ - chromaprint fftw flac faad2 mp4v2 libid3tag libmad libopus libshout libsndfile + chromaprint fftw flac faad2 glibcLocales mp4v2 libid3tag libmad libopus libshout libsndfile libusb1 libvorbis pkgconfig portaudio portmidi protobuf qt4 rubberband scons sqlite taglib upower vampSDK ]; @@ -42,6 +45,11 @@ stdenv.mkDerivation rec { runHook postInstall ''; + fixupPhase = '' + wrapProgram $out/bin/mixxx \ + --set LOCALE_ARCHIVE ${glibcLocales}/lib/locale/locale-archive; + ''; + meta = with stdenv.lib; { homepage = https://mixxx.org; description = "Digital DJ mixing software";