1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-19 04:02:10 +00:00
nixpkgs/pkgs/misc/libcardiacarrest/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

49 lines
1.4 KiB
Nix
Raw Normal View History

2021-01-17 02:30:45 +00:00
{ lib, stdenv, fetchFromGitHub, pkg-config, glib, libpulseaudio }:
2018-02-24 20:56:14 +00:00
2021-01-15 13:21:58 +00:00
with lib;
2018-02-24 20:56:14 +00:00
stdenv.mkDerivation rec {
pname = "libcardiacarrest";
2019-02-03 20:01:03 +00:00
version = "12.2.8"; # <PA API version>.<version>
2018-02-24 20:56:14 +00:00
src = fetchFromGitHub {
owner = "oxij";
repo = "libcardiacarrest";
2019-02-03 20:01:03 +00:00
rev = "d89639f5b2d298cf74af26880f5ebf50e645166d";
sha256 = "0vrigwcw3g8zknqyznv6y3437ahn1w00gv3d303smmygr0p8bd94";
2018-02-24 20:56:14 +00:00
};
outputs = [ "out" "dev" ];
2021-01-17 02:30:45 +00:00
nativeBuildInputs = [ pkg-config ];
2018-02-24 20:56:14 +00:00
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
};
}