git.iko.soy/typeable/nixpkgs
on master help sign in
faust: 2.0.a51 -> 2.1.0
commitd454675ef6e6d06a933ce471c3ff69643138a1a8 authorBart Brouns <bart@magnetophon.nl> dateThu 15 Jun 2017, 01:42 (9 years ago) parent629e9c6
1 file changed+10−8
pkgs/applications/audio/faust/faust2.nix+10−8
pkgs/applications/audio/faust/faust2.nix+10−8
@@ -1,6 +1,6 @@
11{ stdenv
22, coreutils
3−, fetchurl
3+, fetchFromGitHub
44, makeWrapper
55, pkgconfig
66, clang
@@ -16,11 +16,13 @@ with stdenv.lib.strings;
1616
1717let
1818
19− version = "2.0.a51";
19+ version = "2.1.0";
2020
21− src = fetchurl {
22− url = "mirror://sourceforge/project/faudiostream/faust-${version}.tgz";
23− sha256 = "1yryjqfqmxs7lxy95hjgmrncvl9kig3rcsmg0v49ghzz7vs7haxf";
21+ src = fetchFromGitHub {
22+ owner = "grame-cncm";
23+ repo = "faust";
24+ rev = "v${builtins.replaceStrings ["."] ["-"] version}";
25+ sha256 = "1pmiwy287g79ipz9pppnkfrdgls3l912kpkr7dfymk9wk5y5di9m";
2426 };
2527
2628 meta = with stdenv.lib; {
@@ -67,7 +69,7 @@ let
6769 #
6870 # For now, fix this by 1) pinning the llvm version; 2) manually setting LLVM_VERSION
6971 # to something the makefile will recognize.
70− sed '52iLLVM_VERSION=3.8.0' -i compiler/Makefile.unix
72+ sed '52iLLVM_VERSION=${stdenv.lib.getVersion llvm}' -i compiler/Makefile.unix
7173 '';
7274
7375 # Remove most faust2appl scripts since they won't run properly
@@ -194,8 +196,8 @@ let
194196 # export parts of the build environment
195197 for script in "$out"/bin/*; do
196198 wrapProgram "$script" \
197− --set FAUSTLIB "${faust}/lib/faust" \
198− --set FAUST_LIB_PATH "${faust}/lib/faust" \
199+ --set FAUSTLIB "${faust}/share/faust" \
200+ --set FAUST_LIB_PATH "${faust}/share/faust" \
199201 --set FAUSTINC "${faust}/include/faust" \
200202 --prefix PATH : "$PATH" \
201203 --prefix PKG_CONFIG_PATH : "$PKG_CONFIG_PATH" \