mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 01:43:15 +00:00
37 lines
1.0 KiB
Nix
37 lines
1.0 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;
|
|
};
|
|
})
|