2021-06-10 04:57:09 +02:00
|
|
|
{ lib, stdenv, fetchurl, alsa-lib, fixDarwinDylibNames }:
|
2018-06-17 22:50:47 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "sndio";
|
2021-08-11 23:06:39 +02:00
|
|
|
version = "1.8.1";
|
2018-06-17 22:50:47 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-08-11 23:06:39 +02:00
|
|
|
url = "https://www.sndio.org/sndio-${version}.tar.gz";
|
|
|
|
sha256 = "08b33bbrhbva1lyzzsj5k6ggcqzrfjfhb2n99a0b8b07kqc3f7gq";
|
2018-06-17 22:50:47 +02:00
|
|
|
};
|
|
|
|
|
2021-05-12 19:56:23 +02:00
|
|
|
nativeBuildInputs = lib.optional stdenv.hostPlatform.isDarwin fixDarwinDylibNames;
|
2021-06-10 04:57:09 +02:00
|
|
|
buildInputs = lib.optional stdenv.hostPlatform.isLinux alsa-lib;
|
2022-05-03 04:23:35 +02:00
|
|
|
configurePlatforms = [];
|
2021-05-12 19:56:23 +02:00
|
|
|
|
2022-03-20 16:54:35 +01:00
|
|
|
postInstall = ''
|
|
|
|
install -Dm644 contrib/sndiod.service $out/lib/systemd/system/sndiod.service
|
|
|
|
'';
|
|
|
|
|
2021-05-12 19:56:23 +02:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2021-08-11 23:06:39 +02:00
|
|
|
homepage = "https://www.sndio.org";
|
2018-06-17 22:50:47 +02:00
|
|
|
description = "Small audio and MIDI framework part of the OpenBSD project";
|
|
|
|
license = licenses.isc;
|
2022-04-18 01:13:36 +02:00
|
|
|
maintainers = with maintainers; [ Madouura ];
|
2018-06-17 22:50:47 +02:00
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|