aide: move to finalAttrs (#436661)

This commit is contained in:
Yt
2025-08-25 20:54:51 -04:00
committed by GitHub
+8 -7
View File
@@ -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;
};
}
})