about summary refs log tree commit diff
path: root/pkgs/os-specific/linux/alsa-oss
diff options
context:
space:
mode:
authorAristid Breitkreuz <aristidb@gmail.com>2013-01-28 02:48:57 +0100
committerAristid Breitkreuz <aristidb@gmail.com>2013-01-28 02:49:49 +0100
commit4534699938f3bf84c90acd8d94e823c6799dcec0 (patch)
tree47d79a31a8de5d38f6c67a1c04d5d6170f112360 /pkgs/os-specific/linux/alsa-oss
parent3b34b3610ef3d811cd03f937de366685160f68d5 (diff)
downloadnixlib-4534699938f3bf84c90acd8d94e823c6799dcec0.tar
nixlib-4534699938f3bf84c90acd8d94e823c6799dcec0.tar.gz
nixlib-4534699938f3bf84c90acd8d94e823c6799dcec0.tar.bz2
nixlib-4534699938f3bf84c90acd8d94e823c6799dcec0.tar.lz
nixlib-4534699938f3bf84c90acd8d94e823c6799dcec0.tar.xz
nixlib-4534699938f3bf84c90acd8d94e823c6799dcec0.tar.zst
nixlib-4534699938f3bf84c90acd8d94e823c6799dcec0.zip
add alsa oss emulation
Diffstat (limited to 'pkgs/os-specific/linux/alsa-oss')
-rw-r--r--pkgs/os-specific/linux/alsa-oss/default.nix33
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/alsa-oss/default.nix b/pkgs/os-specific/linux/alsa-oss/default.nix
new file mode 100644
index 000000000000..c76ee8d9298c
--- /dev/null
+++ b/pkgs/os-specific/linux/alsa-oss/default.nix
@@ -0,0 +1,33 @@
+{stdenv, fetchurl, alsaLib, gettext, ncurses, libsamplerate}:
+
+stdenv.mkDerivation rec {
+  name = "alsa-oss-1.0.25";
+
+  src = fetchurl {
+    url = "ftp://ftp.alsa-project.org/pub/oss-lib/${name}.tar.bz2";
+    # url = "http://alsa.cybermirror.org/oss-lib/${name}.tar.bz2";
+    sha256 = "ed823b8e42599951d896c1709615d4cf7cb1cb3a7c55c75ccee82e24ccaf28e3";
+  };
+
+  buildInputs = [ alsaLib ncurses libsamplerate ];
+  buildNativeInputs = [ gettext ];
+
+  configureFlags = "--disable-xmlto";
+
+  installFlags = "ASOUND_STATE_DIR=$(TMPDIR)/dummy";
+
+  preConfigure =
+    ''
+    '';
+
+  meta = {
+    description = "ALSA, the Advanced Linux Sound Architecture alsa-oss emulation";
+
+    longDescription = ''
+      The Advanced Linux Sound Architecture (ALSA) provides audio and
+      MIDI functionality to the Linux-based operating system.
+    '';
+
+    homepage = http://www.alsa-project.org/;
+  };
+}