sndio: move to finalAttrs

explicitly use lib where needed
This commit is contained in:
John Titor 2024-04-27 18:06:12 +05:30
parent 32016912f4
commit 987fc18a12
No known key found for this signature in database
GPG Key ID: 29B0514F4E3C1CC0
1 changed files with 8 additions and 8 deletions

View File

@ -1,12 +1,12 @@
{ lib, stdenv, fetchurl, alsa-lib, fixDarwinDylibNames }:
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "sndio";
version = "1.9.0";
src = fetchurl {
url = "https://www.sndio.org/sndio-${version}.tar.gz";
sha256 = "sha256-8wgm/JwH42nTkk1fzt9qClPA30rh9atQ/pzygFQPaZo=";
url = "https://www.sndio.org/sndio-${finalAttrs.version}.tar.gz";
hash = "sha256-8wgm/JwH42nTkk1fzt9qClPA30rh9atQ/pzygFQPaZo=";
};
nativeBuildInputs = lib.optional stdenv.hostPlatform.isDarwin fixDarwinDylibNames;
@ -19,11 +19,11 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
meta = with lib; {
meta = {
homepage = "https://www.sndio.org";
description = "Small audio and MIDI framework part of the OpenBSD project";
license = licenses.isc;
maintainers = with maintainers; [ Madouura ];
platforms = platforms.all;
license = lib.licenses.isc;
maintainers = with lib.maintainers; [ Madouura ];
platforms = lib.platforms.all;
};
}
})