From 8d9a25387fd998396a8caebd300a3f939bcfdd7a Mon Sep 17 00:00:00 2001 From: Tobias Geerinckx-Rice Date: Sun, 8 May 2016 17:33:43 +0200 Subject: [PATCH] fmit: 1.0.14 -> 1.0.15 Fix version number in about box. It turns out that sniffing your README.txt, at run-time, for a version string, at a specific line offset, is... fragile? --- pkgs/applications/audio/fmit/default.nix | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/audio/fmit/default.nix b/pkgs/applications/audio/fmit/default.nix index 05f4f6314e4f..db17ca8553c8 100644 --- a/pkgs/applications/audio/fmit/default.nix +++ b/pkgs/applications/audio/fmit/default.nix @@ -11,20 +11,24 @@ with stdenv.lib; stdenv.mkDerivation rec { name = "fmit-${version}"; - version = "1.0.14"; + version = "1.0.15"; src = fetchFromGitHub { - sha256 = "1f8raqpqqyr02lnpxxpg69a2if1nbw0za71x62kcp3pms1qc0mbh"; + sha256 = "0bakqwgl7xx6khs8993w10a8kvlbr7sbqdaljbsmy8y8mjd6inqb"; rev = "v${version}"; repo = "fmit"; owner = "gillesdegottex"; }; - buildInputs = [ fftw freeglut mesa_glu qtbase qtmultimedia qmakeHook ] + buildInputs = [ fftw qtbase qtmultimedia qmakeHook ] ++ optionals alsaSupport [ alsaLib ] ++ optionals jackSupport [ libjack2 ] ++ optionals portaudioSupport [ portaudio ]; + postPatch = '' + substituteInPlace fmit.pro --replace '$$FMITVERSIONGITPRO' '${version}' + ''; + preConfigure = '' qmakeFlags="$qmakeFlags \ CONFIG+=${optionalString alsaSupport "acs_alsa"} \