159e378cbb
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
36 lines
1 KiB
Nix
36 lines
1 KiB
Nix
{ lib, stdenv, fetchurl, alsa-lib, fixDarwinDylibNames, gitUpdater }:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "sndio";
|
|
version = "1.10.0";
|
|
|
|
src = fetchurl {
|
|
url = "https://www.sndio.org/sndio-${finalAttrs.version}.tar.gz";
|
|
hash = "sha256-vr07/QHFDJN2zz54FLk3m+2eF9A5O1ETt+t6PQ0DjFQ=";
|
|
};
|
|
|
|
nativeBuildInputs = lib.optional stdenv.hostPlatform.isDarwin fixDarwinDylibNames;
|
|
buildInputs = lib.optional stdenv.hostPlatform.isLinux alsa-lib;
|
|
configurePlatforms = [];
|
|
|
|
postInstall = ''
|
|
install -Dm644 contrib/sndiod.service $out/lib/systemd/system/sndiod.service
|
|
'';
|
|
|
|
enableParallelBuilding = true;
|
|
# does not provide --disable-static
|
|
dontDisableStatic = true;
|
|
|
|
passthru.updateScript = gitUpdater {
|
|
url = "https://sndio.org/git/sndio";
|
|
rev-prefix = "v";
|
|
};
|
|
|
|
meta = {
|
|
homepage = "https://www.sndio.org";
|
|
description = "Small audio and MIDI framework part of the OpenBSD project";
|
|
license = lib.licenses.isc;
|
|
maintainers = with lib.maintainers; [ Madouura ];
|
|
platforms = lib.platforms.all;
|
|
};
|
|
})
|