mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 17:33:09 +00:00
987fc18a12
explicitly use lib where needed
30 lines
877 B
Nix
30 lines
877 B
Nix
{ lib, stdenv, fetchurl, alsa-lib, fixDarwinDylibNames }:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "sndio";
|
|
version = "1.9.0";
|
|
|
|
src = fetchurl {
|
|
url = "https://www.sndio.org/sndio-${finalAttrs.version}.tar.gz";
|
|
hash = "sha256-8wgm/JwH42nTkk1fzt9qClPA30rh9atQ/pzygFQPaZo=";
|
|
};
|
|
|
|
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;
|
|
|
|
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;
|
|
};
|
|
})
|