aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/misc/libcardiacarrest
diff options
context:
space:
mode:
authorKatharina Fey <kookie@spacekookie.de>2019-10-05 12:43:18 +0000
committerKatharina Fey <kookie@spacekookie.de>2019-10-05 12:44:52 +0000
commitcf85056ba64caf3267d43255ef4a1243e9c8ee3b (patch)
tree3051519e9c8275b870aac43f80af875715c9d124 /nixpkgs/pkgs/misc/libcardiacarrest
parent1148b1d122bc03e9a3665856c9b7bb96bd4e3994 (diff)
parent2436c27541b2f52deea3a4c1691216a02152e729 (diff)
Add 'nixpkgs/' from commit '2436c27541b2f52deea3a4c1691216a02152e729'
git-subtree-dir: nixpkgs git-subtree-mainline: 1148b1d122bc03e9a3665856c9b7bb96bd4e3994 git-subtree-split: 2436c27541b2f52deea3a4c1691216a02152e729
Diffstat (limited to 'nixpkgs/pkgs/misc/libcardiacarrest')
-rw-r--r--nixpkgs/pkgs/misc/libcardiacarrest/default.nix48
1 files changed, 48 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/misc/libcardiacarrest/default.nix b/nixpkgs/pkgs/misc/libcardiacarrest/default.nix
new file mode 100644
index 00000000000..0c3370814bc
--- /dev/null
+++ b/nixpkgs/pkgs/misc/libcardiacarrest/default.nix
@@ -0,0 +1,48 @@
+{ stdenv, fetchFromGitHub, pkgconfig, glib, libpulseaudio }:
+
+with stdenv.lib;
+
+stdenv.mkDerivation rec {
+ pname = "libcardiacarrest";
+ version = "12.2.8"; # <PA API version>.<version>
+
+ src = fetchFromGitHub {
+ owner = "oxij";
+ repo = "libcardiacarrest";
+ rev = "d89639f5b2d298cf74af26880f5ebf50e645166d";
+ sha256 = "0vrigwcw3g8zknqyznv6y3437ahn1w00gv3d303smmygr0p8bd94";
+ };
+
+ outputs = [ "out" "dev" ];
+
+ nativeBuildInputs = [ pkgconfig ];
+
+ buildInputs = [ glib ];
+
+ makeFlags = [ "PREFIX=$(out)" ];
+
+ postInstall = ''
+ moveToOutput $out/include $dev
+ moveToOutput $out/lib/pkgconfig $dev
+ moveToOutput $out/lib/cmake $dev
+ '';
+
+ meta = src.meta // {
+ description = "A trivial implementation of libpulse PulseAudio library API";
+ longDescription = ''
+ libcardiacarrest is a trivial implementation of libpulse
+ PulseAudio library API that unconditionally (but gracefully)
+ fails to connect to the PulseAudio daemon and does nothing else.
+
+ apulse and pressureaudio (which uses apulse internally) are an
+ inspiration for this but unlike those two projects
+ libcardiacarrest is not an emulation layer, all it does is it
+ gracefully fails to provide the requested PulseAudio service
+ hoping the application would try something else (e.g. ALSA or
+ JACK).
+ '';
+ license = libpulseaudio.meta.license; # "same as PA headers"
+ maintainers = [ maintainers.oxij ]; # also the author
+ };
+
+}