lol

sndio: move to finalAttrs explicitly use lib where needed

+8 -8
+8 -8
pkgs/misc/sndio/default.nix
··· 1 1 { lib, stdenv, fetchurl, alsa-lib, fixDarwinDylibNames }: 2 2 3 - stdenv.mkDerivation rec { 3 + stdenv.mkDerivation (finalAttrs: { 4 4 pname = "sndio"; 5 5 version = "1.9.0"; 6 6 7 7 src = fetchurl { 8 - url = "https://www.sndio.org/sndio-${version}.tar.gz"; 9 - sha256 = "sha256-8wgm/JwH42nTkk1fzt9qClPA30rh9atQ/pzygFQPaZo="; 8 + url = "https://www.sndio.org/sndio-${finalAttrs.version}.tar.gz"; 9 + hash = "sha256-8wgm/JwH42nTkk1fzt9qClPA30rh9atQ/pzygFQPaZo="; 10 10 }; 11 11 12 12 nativeBuildInputs = lib.optional stdenv.hostPlatform.isDarwin fixDarwinDylibNames; ··· 19 19 20 20 enableParallelBuilding = true; 21 21 22 - meta = with lib; { 22 + meta = { 23 23 homepage = "https://www.sndio.org"; 24 24 description = "Small audio and MIDI framework part of the OpenBSD project"; 25 - license = licenses.isc; 26 - maintainers = with maintainers; [ Madouura ]; 27 - platforms = platforms.all; 25 + license = lib.licenses.isc; 26 + maintainers = with lib.maintainers; [ Madouura ]; 27 + platforms = lib.platforms.all; 28 28 }; 29 - } 29 + })