summary refs log tree commit diff
path: root/pkgs/os-specific/linux/alsa-project/alsa-utils/default.nix
diff options
context:
space:
mode:
authorAndersonTorres <torres.anderson.85@protonmail.com>2021-06-09 22:15:45 -0300
committerAndersonTorres <torres.anderson.85@protonmail.com>2021-06-10 01:12:48 -0300
commit7f7f2ef93a601eca84a0958f3b76d2b3f9db3391 (patch)
treeb8411916309e6362035253d8d16710af94779d73 /pkgs/os-specific/linux/alsa-project/alsa-utils/default.nix
parent351e0d0fd32c8b53af4260b52dc4f9f7c68a0643 (diff)
downloadnixpkgs-7f7f2ef93a601eca84a0958f3b76d2b3f9db3391.tar
nixpkgs-7f7f2ef93a601eca84a0958f3b76d2b3f9db3391.tar.gz
nixpkgs-7f7f2ef93a601eca84a0958f3b76d2b3f9db3391.tar.bz2
nixpkgs-7f7f2ef93a601eca84a0958f3b76d2b3f9db3391.tar.lz
nixpkgs-7f7f2ef93a601eca84a0958f3b76d2b3f9db3391.tar.xz
nixpkgs-7f7f2ef93a601eca84a0958f3b76d2b3f9db3391.tar.zst
nixpkgs-7f7f2ef93a601eca84a0958f3b76d2b3f9db3391.zip
alsa-project: a small refactor
Now, all ALSA projects reside in a dedicated directory, namely,
pkgs/os-specific/linux/alsa-project/
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..dd747bbbf6f
--- /dev/null
+++ b/pkgs/os-specific/linux/alsa-project/alsa-utils/default.nix
@@ -0,0 +1,35 @@
+{lib, stdenv, fetchurl, alsaLib, gettext, makeWrapper, ncurses, libsamplerate, pciutils, which, fftw}:
+
+stdenv.mkDerivation rec {
+  pname = "alsa-utils";
+  version = "1.2.4";
+
+  src = fetchurl {
+    url = "mirror://alsa/utils/${pname}-${version}.tar.bz2";
+    sha256 = "09m4dnn4kplawprd2bl15nwa0b4r1brab3x44ga7f1fyk7aw5zwq";
+  };
+
+  nativeBuildInputs = [ gettext makeWrapper ];
+  buildInputs = [ alsaLib 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 ];
+  };
+}