mlocate: use `finalAttrs` pattern (#446146)

authored by Pol Dellaiera and committed by GitHub 1edcb7ff 4bcfc3ae

+8 -8
+8 -8
pkgs/by-name/ml/mlocate/package.nix
··· 4 4 fetchurl, 5 5 }: 6 6 7 - stdenv.mkDerivation rec { 7 + stdenv.mkDerivation (finalAttrs: { 8 8 pname = "mlocate"; 9 9 version = "0.26"; 10 10 11 11 src = fetchurl { 12 - url = "https://releases.pagure.org/mlocate/mlocate-${version}.tar.xz"; 13 - sha256 = "0gi6y52gkakhhlnzy0p6izc36nqhyfx5830qirhvk3qrzrwxyqrh"; 12 + url = "https://releases.pagure.org/mlocate/mlocate-${finalAttrs.version}.tar.xz"; 13 + hash = "sha256-MGPfef4Zj7lhjhgMVLrzEFsz2I/mAv8thXCq+UTxJj4="; 14 14 }; 15 15 16 16 makeFlags = [ 17 17 "dbfile=/var/cache/locatedb" 18 18 ]; 19 19 20 - meta = with lib; { 21 - description = "Merging locate is an utility to index and quickly search for files"; 20 + meta = { 21 + description = "Utility to index and quickly search for files"; 22 22 homepage = "https://pagure.io/mlocate"; 23 - license = licenses.gpl2Only; 24 - platforms = platforms.linux; 23 + license = lib.licenses.gpl2Only; 24 + platforms = lib.platforms.linux; 25 25 maintainers = [ ]; 26 26 }; 27 - } 27 + })