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