nixpkgs/pkgs/misc/sndio/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
856 B
Nix
Raw Normal View History

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