2021-06-28 23:13:55 +00:00
|
|
|
{ lib, stdenv, fetchurl, alsa-lib, fixDarwinDylibNames }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "sndio";
|
2022-08-12 12:06:08 +00:00
|
|
|
version = "1.9.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2024-05-15 15:35:15 +00:00
|
|
|
url = "https://www.sndio.org/sndio-${finalAttrs.version}.tar.gz";
|
|
|
|
hash = "sha256-8wgm/JwH42nTkk1fzt9qClPA30rh9atQ/pzygFQPaZo=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
nativeBuildInputs = lib.optional stdenv.hostPlatform.isDarwin fixDarwinDylibNames;
|
2021-06-28 23:13:55 +00:00
|
|
|
buildInputs = lib.optional stdenv.hostPlatform.isLinux alsa-lib;
|
2022-06-16 17:23:12 +00:00
|
|
|
configurePlatforms = [];
|
2021-05-20 23:08:51 +00:00
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
postInstall = ''
|
|
|
|
install -Dm644 contrib/sndiod.service $out/lib/systemd/system/sndiod.service
|
|
|
|
'';
|
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
meta = {
|
2021-08-18 13:19:15 +00:00
|
|
|
homepage = "https://www.sndio.org";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Small audio and MIDI framework part of the OpenBSD project";
|
2024-05-15 15:35:15 +00:00
|
|
|
license = lib.licenses.isc;
|
|
|
|
maintainers = with lib.maintainers; [ Madouura ];
|
|
|
|
platforms = lib.platforms.all;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2024-05-15 15:35:15 +00:00
|
|
|
})
|