aide: move to finalAttrs

kashw2 6ae5c34c 57f07c20

+8 -7
+8 -7
pkgs/by-name/ai/aide/package.nix
··· 14 14 libgcrypt, 15 15 }: 16 16 17 - stdenv.mkDerivation rec { 17 + stdenv.mkDerivation (finalAttrs: { 18 18 pname = "aide"; 19 19 version = "0.19.2"; 20 20 21 21 src = fetchurl { 22 - url = "https://github.com/aide/aide/releases/download/v${version}/${pname}-${version}.tar.gz"; 23 - sha256 = "sha256-I3YrBfRhEe3rPIoFAWyHMcAb24wfkb5IwVbDGrhedMQ="; 22 + # We specifically want the tar.gz, so fetchFromGitHub is not suitable here 23 + url = "https://github.com/aide/aide/releases/download/v${finalAttrs.version}/${finalAttrs.pname}-${finalAttrs.version}.tar.gz"; 24 + hash = "sha256-I3YrBfRhEe3rPIoFAWyHMcAb24wfkb5IwVbDGrhedMQ="; 24 25 }; 25 26 27 + nativeBuildInputs = [ pkg-config ]; 28 + 26 29 buildInputs = [ 27 30 flex 28 31 bison ··· 35 38 libgcrypt 36 39 ]; 37 40 38 - nativeBuildInputs = [ pkg-config ]; 39 - 40 41 configureFlags = [ 41 42 "--with-posix-acl" 42 43 "--with-selinux" ··· 46 47 47 48 meta = { 48 49 homepage = "https://aide.github.io/"; 49 - changelog = "https://github.com/aide/aide/blob/v${version}/ChangeLog"; 50 + changelog = "https://github.com/aide/aide/blob/v${finalAttrs.version}/ChangeLog"; 50 51 description = "File and directory integrity checker"; 51 52 mainProgram = "aide"; 52 53 license = lib.licenses.gpl2Plus; 53 54 maintainers = with lib.maintainers; [ happysalada ]; 54 55 platforms = lib.platforms.linux; 55 56 }; 56 - } 57 + })