From 48d8ab884ca279b9957cabff36ce44219254fc48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cillian=20de=20R=C3=B3iste?= Date: Sat, 16 Feb 2013 21:07:48 +0100 Subject: [PATCH] Fix Hydrogen to build with JACK 1.9.9.5 This patches the Hydrogen scons build script to work a failure to parse the JACK version correctly. If I understand correctly upstream Hydrogen now uses cmake instead of Scons, so this shouldn't be a problem with the next Hydrogen release. --- pkgs/applications/audio/hydrogen/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/audio/hydrogen/default.nix b/pkgs/applications/audio/hydrogen/default.nix index 6b994c7d9ae6..bb10f24b90a2 100644 --- a/pkgs/applications/audio/hydrogen/default.nix +++ b/pkgs/applications/audio/hydrogen/default.nix @@ -20,7 +20,8 @@ stdenv.mkDerivation rec { postPatch = '' sed -e 's#/usr/lib/ladspa#${ladspaPlugins}/lib/ladspa#' -i libs/hydrogen/src/preferences.cpp sed '/\/usr/d' -i libs/hydrogen/src/preferences.cpp - ''; + sed "s#pkg_ver.rstrip().split('.')#pkg_ver.rstrip().split('.')[:3]#" -i Sconstruct + ''; # why doesn't scons find librdf? buildPhase = ''