summary refs log tree commit diff
path: root/pkgs/applications/audio
diff options
context:
space:
mode:
authorarcnmx <arcnmx@users.noreply.github.com>2020-10-02 12:39:15 -0700
committerarcnmx <arcnmx@users.noreply.github.com>2021-04-12 17:13:37 -0700
commitc219dfc43458ec104086c254e78b703b3476865d (patch)
tree86edf8bb2aa8026e764d06f3f8f5af68d23c26be /pkgs/applications/audio
parent7ed23e37bda780b4b912d5859d352831afb6f46f (diff)
downloadnixpkgs-c219dfc43458ec104086c254e78b703b3476865d.tar
nixpkgs-c219dfc43458ec104086c254e78b703b3476865d.tar.gz
nixpkgs-c219dfc43458ec104086c254e78b703b3476865d.tar.bz2
nixpkgs-c219dfc43458ec104086c254e78b703b3476865d.tar.lz
nixpkgs-c219dfc43458ec104086c254e78b703b3476865d.tar.xz
nixpkgs-c219dfc43458ec104086c254e78b703b3476865d.tar.zst
nixpkgs-c219dfc43458ec104086c254e78b703b3476865d.zip
scream: 3.4 -> 3.6
Renamed from scream-receivers
Diffstat (limited to 'pkgs/applications/audio')
-rw-r--r--pkgs/applications/audio/scream/default.nix43
1 files changed, 43 insertions, 0 deletions
diff --git a/pkgs/applications/audio/scream/default.nix b/pkgs/applications/audio/scream/default.nix
new file mode 100644
index 00000000000..976ede5803d
--- /dev/null
+++ b/pkgs/applications/audio/scream/default.nix
@@ -0,0 +1,43 @@
+{ stdenv, lib, config, fetchFromGitHub, cmake, pkg-config
+, alsaSupport ? stdenv.isLinux, alsaLib
+, pulseSupport ? config.pulseaudio or stdenv.isLinux, libpulseaudio
+}:
+
+stdenv.mkDerivation rec {
+  pname = "scream";
+  version = "3.6";
+
+  src = fetchFromGitHub {
+    owner = "duncanthrax";
+    repo = pname;
+    rev = version;
+    sha256 = "01k2zhfb781gfj3apmcjqbm5m05m6pvnh7fb5k81zwvqibai000v";
+  };
+
+  buildInputs = lib.optional pulseSupport libpulseaudio
+    ++ lib.optional alsaSupport alsaLib;
+  nativeBuildInputs = [ cmake pkg-config ];
+
+  cmakeFlags = [
+    "-DPULSEAUDIO_ENABLE=${if pulseSupport then "ON" else "OFF"}"
+    "-DALSA_ENABLE=${if alsaSupport then "ON" else "OFF"}"
+  ];
+
+  cmakeDir = "../Receivers/unix";
+
+  doInstallCheck = true;
+  installCheckPhase = ''
+    set +o pipefail
+
+    # Programs exit with code 1 when testing help, so grep for a string
+    $out/bin/scream -h 2>&1 | grep -q Usage:
+  '';
+
+  meta = with lib; {
+    description = "Audio receiver for the Scream virtual network sound card";
+    homepage = "https://github.com/duncanthrax/scream";
+    license = licenses.mspl;
+    platforms = platforms.linux;
+    maintainers = with maintainers; [ arcnmx ];
+  };
+}