about summary refs log tree commit diff
path: root/pkgs/applications/audio/snd/default.nix
diff options
context:
space:
mode:
authorMichael Raskin <7c6f434c@mail.ru>2007-11-03 04:15:13 +0000
committerMichael Raskin <7c6f434c@mail.ru>2007-11-03 04:15:13 +0000
commit56cd763e464f95a9f55d093f8f1682f918e0aa74 (patch)
tree21169e231423ed6e2db7f6c5254216674e163ba6 /pkgs/applications/audio/snd/default.nix
parentc7521fb6d9dea307e260f642322df07611c5cc9e (diff)
downloadnixlib-56cd763e464f95a9f55d093f8f1682f918e0aa74.tar
nixlib-56cd763e464f95a9f55d093f8f1682f918e0aa74.tar.gz
nixlib-56cd763e464f95a9f55d093f8f1682f918e0aa74.tar.bz2
nixlib-56cd763e464f95a9f55d093f8f1682f918e0aa74.tar.lz
nixlib-56cd763e464f95a9f55d093f8f1682f918e0aa74.tar.xz
nixlib-56cd763e464f95a9f55d093f8f1682f918e0aa74.tar.zst
nixlib-56cd763e464f95a9f55d093f8f1682f918e0aa74.zip
Added Snd sound editor
svn path=/nixpkgs/trunk/; revision=9573
Diffstat (limited to 'pkgs/applications/audio/snd/default.nix')
-rw-r--r--pkgs/applications/audio/snd/default.nix37
1 files changed, 37 insertions, 0 deletions
diff --git a/pkgs/applications/audio/snd/default.nix b/pkgs/applications/audio/snd/default.nix
new file mode 100644
index 000000000000..142baf9dba36
--- /dev/null
+++ b/pkgs/applications/audio/snd/default.nix
@@ -0,0 +1,37 @@
+args : with args;
+	with builderDefs {
+		src = 
+	fetchurl {
+		url = ftp://ccrma-ftp.stanford.edu/pub/Lisp/snd-9.4.tar.gz;
+		sha256 = "0zqgfnkvkqxby1k74mwba1r4pb520glcsz5jjmpzm9m41nqnghmm";
+	};
+
+		buildInputs = [gtk glib pkgconfig libXpm gmp gettext]
+			++ (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 */
+	with stringsWithDeps;
+	let preBuild = FullDepEntry ("
+		cp config.log /tmp/snd-config.log
+	") [minInit doUnpack];
+in
+stdenv.mkDerivation rec {
+	name = "Snd-9.4";
+	builder = writeScript (name + "-builder")
+		(textClosure [doConfigure preBuild doMakeInstall doForceShare]);
+	meta = {
+		description = "
+		Snd sound editor.
+";
+	};
+}