3
0
Fork 0
forked from mirrors/nixpkgs

faust: 2.0.a51 -> 2.1.0

This commit is contained in:
Bart Brouns 2017-06-15 01:42:55 +02:00 committed by Frederik Rietdijk
parent 629e9c6dc7
commit d454675ef6

View file

@ -1,6 +1,6 @@
{ stdenv { stdenv
, coreutils , coreutils
, fetchurl , fetchFromGitHub
, makeWrapper , makeWrapper
, pkgconfig , pkgconfig
, clang , clang
@ -16,11 +16,13 @@ with stdenv.lib.strings;
let let
version = "2.0.a51"; version = "2.1.0";
src = fetchurl { src = fetchFromGitHub {
url = "mirror://sourceforge/project/faudiostream/faust-${version}.tgz"; owner = "grame-cncm";
sha256 = "1yryjqfqmxs7lxy95hjgmrncvl9kig3rcsmg0v49ghzz7vs7haxf"; repo = "faust";
rev = "v${builtins.replaceStrings ["."] ["-"] version}";
sha256 = "1pmiwy287g79ipz9pppnkfrdgls3l912kpkr7dfymk9wk5y5di9m";
}; };
meta = with stdenv.lib; { meta = with stdenv.lib; {
@ -67,7 +69,7 @@ let
# #
# For now, fix this by 1) pinning the llvm version; 2) manually setting LLVM_VERSION # For now, fix this by 1) pinning the llvm version; 2) manually setting LLVM_VERSION
# to something the makefile will recognize. # to something the makefile will recognize.
sed '52iLLVM_VERSION=3.8.0' -i compiler/Makefile.unix sed '52iLLVM_VERSION=${stdenv.lib.getVersion llvm}' -i compiler/Makefile.unix
''; '';
# Remove most faust2appl scripts since they won't run properly # Remove most faust2appl scripts since they won't run properly
@ -194,8 +196,8 @@ let
# export parts of the build environment # export parts of the build environment
for script in "$out"/bin/*; do for script in "$out"/bin/*; do
wrapProgram "$script" \ wrapProgram "$script" \
--set FAUSTLIB "${faust}/lib/faust" \ --set FAUSTLIB "${faust}/share/faust" \
--set FAUST_LIB_PATH "${faust}/lib/faust" \ --set FAUST_LIB_PATH "${faust}/share/faust" \
--set FAUSTINC "${faust}/include/faust" \ --set FAUSTINC "${faust}/include/faust" \
--prefix PATH : "$PATH" \ --prefix PATH : "$PATH" \
--prefix PKG_CONFIG_PATH : "$PKG_CONFIG_PATH" \ --prefix PKG_CONFIG_PATH : "$PKG_CONFIG_PATH" \