From 6ae5c34ce692578036fce3b9410c7e7a7b5fcd10 Mon Sep 17 00:00:00 2001 From: kashw2 Date: Mon, 25 Aug 2025 13:22:00 +1000 Subject: [PATCH] aide: move to finalAttrs --- pkgs/by-name/ai/aide/package.nix | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/pkgs/by-name/ai/aide/package.nix b/pkgs/by-name/ai/aide/package.nix index 3d14dcea9f9e..cc60a85853ab 100644 --- a/pkgs/by-name/ai/aide/package.nix +++ b/pkgs/by-name/ai/aide/package.nix @@ -14,15 +14,18 @@ libgcrypt, }: -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "aide"; version = "0.19.2"; src = fetchurl { - url = "https://github.com/aide/aide/releases/download/v${version}/${pname}-${version}.tar.gz"; - sha256 = "sha256-I3YrBfRhEe3rPIoFAWyHMcAb24wfkb5IwVbDGrhedMQ="; + # We specifically want the tar.gz, so fetchFromGitHub is not suitable here + url = "https://github.com/aide/aide/releases/download/v${finalAttrs.version}/${finalAttrs.pname}-${finalAttrs.version}.tar.gz"; + hash = "sha256-I3YrBfRhEe3rPIoFAWyHMcAb24wfkb5IwVbDGrhedMQ="; }; + nativeBuildInputs = [ pkg-config ]; + buildInputs = [ flex bison @@ -35,8 +38,6 @@ stdenv.mkDerivation rec { libgcrypt ]; - nativeBuildInputs = [ pkg-config ]; - configureFlags = [ "--with-posix-acl" "--with-selinux" @@ -46,11 +47,11 @@ stdenv.mkDerivation rec { meta = { homepage = "https://aide.github.io/"; - changelog = "https://github.com/aide/aide/blob/v${version}/ChangeLog"; + changelog = "https://github.com/aide/aide/blob/v${finalAttrs.version}/ChangeLog"; description = "File and directory integrity checker"; mainProgram = "aide"; license = lib.licenses.gpl2Plus; maintainers = with lib.maintainers; [ happysalada ]; platforms = lib.platforms.linux; }; -} +})