2007-11-03 04:15:13 +00:00
|
|
|
args : with args;
|
2008-01-18 12:36:56 +00:00
|
|
|
let localDefs = builderDefs {
|
2007-11-03 04:15:13 +00:00
|
|
|
src =
|
|
|
|
fetchurl {
|
2008-03-07 10:48:54 +00:00
|
|
|
url = http://downloads.sourceforge.net/snd/snd-9.4.tar.gz;
|
2007-11-03 04:15:13 +00:00
|
|
|
sha256 = "0zqgfnkvkqxby1k74mwba1r4pb520glcsz5jjmpzm9m41nqnghmm";
|
|
|
|
};
|
|
|
|
|
2008-06-16 16:33:11 +00:00
|
|
|
buildInputs = [gtk glib pkgconfig libXpm gmp gettext libX11]
|
2007-11-03 04:15:13 +00:00
|
|
|
++ (lib.optional (args ? ruby) args.ruby)
|
|
|
|
++ (lib.optional (args ? mesa) args.mesa)
|
|
|
|
++ (lib.optional (args ? guile) args.guile)
|
|
|
|
++ (lib.optional (args ? libtool) args.libtool)
|
|
|
|
++ (lib.optional (args ? sndlib) args.sndlib)
|
|
|
|
;
|
|
|
|
configureFlags = ["--with-gtk" "--with-xpm"]
|
|
|
|
++ (lib.optional (args ? ruby) "--with-ruby" )
|
|
|
|
++ (lib.optional (args ? mesa) "--with-gl" )
|
|
|
|
++ (lib.optional (args ? guile) "--with-guile")
|
|
|
|
++ (lib.optional (args ? sndlib) "--with-midi" )
|
|
|
|
;
|
|
|
|
} null; /* null is a terminator for sumArgs */
|
2008-01-18 12:36:56 +00:00
|
|
|
in with localDefs;
|
2007-11-03 04:15:13 +00:00
|
|
|
let preBuild = FullDepEntry ("
|
|
|
|
cp config.log /tmp/snd-config.log
|
2008-06-16 16:33:11 +00:00
|
|
|
export NIX_LDFLAGS=\"$NIX_LDFLAGS -L${libX11}/lib -lX11 \"
|
2007-11-03 04:15:13 +00:00
|
|
|
") [minInit doUnpack];
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "Snd-9.4";
|
|
|
|
builder = writeScript (name + "-builder")
|
2008-01-18 12:36:56 +00:00
|
|
|
(textClosure localDefs [doConfigure preBuild doMakeInstall doForceShare]);
|
2007-11-03 04:15:13 +00:00
|
|
|
meta = {
|
2008-01-30 19:49:42 +00:00
|
|
|
description = "Snd sound editor.";
|
|
|
|
homepage = http://ccrma.stanford.edu/software/snd;
|
2008-03-02 18:49:31 +00:00
|
|
|
inherit src;
|
2007-11-03 04:15:13 +00:00
|
|
|
};
|
|
|
|
}
|