summary refs log tree commit diff
path: root/pkgs/os-specific/linux/alsa-project/alsa-utils/default.nix
diff options
context:
space:
mode:
authorJan Tojnar <jtojnar@gmail.com>2021-06-10 14:07:45 +0200
committerJan Tojnar <jtojnar@gmail.com>2021-06-10 14:07:45 +0200
commitba733d435b5b15a996c1759b5dd3c31e0e1f35a8 (patch)
tree1b2493b0049cd7fa003d921107f44b2ea27d0376 /pkgs/os-specific/linux/alsa-project/alsa-utils/default.nix
parent2ca769ad023fe2ce0c1aed7b833e6d3df5a73759 (diff)
parent51dce04dde9ae1d586ee35fad8258d4e85f703c8 (diff)
downloadnixpkgs-ba733d435b5b15a996c1759b5dd3c31e0e1f35a8.tar
nixpkgs-ba733d435b5b15a996c1759b5dd3c31e0e1f35a8.tar.gz
nixpkgs-ba733d435b5b15a996c1759b5dd3c31e0e1f35a8.tar.bz2
nixpkgs-ba733d435b5b15a996c1759b5dd3c31e0e1f35a8.tar.lz
nixpkgs-ba733d435b5b15a996c1759b5dd3c31e0e1f35a8.tar.xz
nixpkgs-ba733d435b5b15a996c1759b5dd3c31e0e1f35a8.tar.zst
nixpkgs-ba733d435b5b15a996c1759b5dd3c31e0e1f35a8.zip
Merge branch 'staging-next' into staging
Diffstat (limited to 'pkgs/os-specific/linux/alsa-project/alsa-utils/default.nix')
-rw-r--r--pkgs/os-specific/linux/alsa-project/alsa-utils/default.nix35
1 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/alsa-project/alsa-utils/default.nix b/pkgs/os-specific/linux/alsa-project/alsa-utils/default.nix
new file mode 100644
index 00000000000..47da04de5ae
--- /dev/null
+++ b/pkgs/os-specific/linux/alsa-project/alsa-utils/default.nix
@@ -0,0 +1,35 @@
+{lib, stdenv, fetchurl, alsa-lib, gettext, makeWrapper, ncurses, libsamplerate, pciutils, which, fftw}:
+
+stdenv.mkDerivation rec {
+  pname = "alsa-utils";
+  version = "1.2.5";
+
+  src = fetchurl {
+    url = "mirror://alsa/utils/${pname}-${version}.tar.bz2";
+    sha256 = "15wrl7jsprpcqdk01a3hdh2lak5jhp5jgflkr80h1crqb3q0m5q9";
+  };
+
+  nativeBuildInputs = [ gettext makeWrapper ];
+  buildInputs = [ alsa-lib ncurses libsamplerate fftw ];
+
+  configureFlags = [ "--disable-xmlto" "--with-udev-rules-dir=$(out)/lib/udev/rules.d" ];
+
+  installFlags = [ "ASOUND_STATE_DIR=$(TMPDIR)/dummy" ];
+
+  postFixup = ''
+    wrapProgram $out/bin/alsa-info.sh --prefix PATH : "${lib.makeBinPath [ which pciutils ]}"
+  '';
+
+  meta = with lib; {
+    homepage = "http://www.alsa-project.org/";
+    description = "ALSA, the Advanced Linux Sound Architecture utils";
+    longDescription = ''
+      The Advanced Linux Sound Architecture (ALSA) provides audio and
+      MIDI functionality to the Linux-based operating system.
+    '';
+
+    license = licenses.gpl2;
+    platforms = platforms.linux;
+    maintainers = [ maintainers.AndersonTorres ];
+  };
+}