From a8113e2c8c3c522e3a35d75c278c582cac444ddb Mon Sep 17 00:00:00 2001 From: Florian Paul Schmidt Date: Thu, 15 Oct 2015 15:01:35 +0200 Subject: [PATCH] ardour: add a clarifying comment to patchPhase --- pkgs/applications/audio/ardour/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/applications/audio/ardour/default.nix b/pkgs/applications/audio/ardour/default.nix index a9f699a04cd..c9075220cd6 100644 --- a/pkgs/applications/audio/ardour/default.nix +++ b/pkgs/applications/audio/ardour/default.nix @@ -37,6 +37,9 @@ stdenv.mkDerivation rec { makeWrapper pango perl pkgconfig python rubberband serd sord-svn sratom suil taglib vampSDK ]; + # ardour's wscript has a "tarball" target but that required the git revision + # be available. Since this is an unzipped tarball fetched from github we + # have to do that ourself. patchPhase = '' printf '#include "libs/ardour/ardour/revision.h"\nnamespace ARDOUR { const char* revision = \"${tag}-${builtins.substring 0 8 src.rev}\"; }\n' > libs/ardour/revision.cc sed 's|/usr/include/libintl.h|${glibc}/include/libintl.h|' -i wscript