summary refs log tree commit diff
path: root/pkgs/applications/audio/beast/default.nix
blob: 29cecb1699980675965bb18ca59c80ea6bda622b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{ stdenv, fetchurl, zlib, guile, libart_lgpl, pkgconfig, intltool
, gtk2, glib, libogg, libvorbis, libgnomecanvas, gettext, perl }:

stdenv.mkDerivation rec {
  name = "beast-0.7.1";

  src = fetchurl {
    url = "https://ftp.gtk.org/pub/beast/v0.7/${name}.tar.bz2";
    sha256 = "0jyl1i1918rsn4296w07fsf6wx3clvad522m3bzgf8ms7gxivg5l";
  };

  buildInputs =
    [ zlib guile libart_lgpl pkgconfig intltool gtk2 glib
      libogg libvorbis libgnomecanvas gettext
    ];

  patchPhase = ''
    unset patchPhase; patchPhase
    sed 's=-DG_DISABLE_DEPRECATED==g' -i `find -type f` # the patches didn't remove all occurences
    sed 's=/bin/bash=/${stdenv.shell}=g' -i `find -type f`
    sed 's=/usr/bin/perl=/${perl}/bin/perl=g' -i `find -type f`
  '';

  patches =
    [ (fetchurl {
        url = mirror://gentoo/distfiles/beast-0.7.1-guile-1.8.diff.bz2;
        sha256 = "dc5194deff4b0a0eec368a69090db682d0c3113044ce2c2ed017ddfec9d3814e";
      })
      ./patch.patch # patches taken from gentoo
    ];

  meta = with stdenv.lib; {
    description = "A music composition and modular synthesis application";
    homepage = http://beast.gtk.org;
    license = with licenses; [ gpl2 lgpl21 ];
    broken = true;
  };
}