Unverified Commit 9fddd394 authored by Yt's avatar Yt Committed by GitHub
Browse files

aide: move to finalAttrs (#436661)

parents c5496c1c 6ae5c34c
Loading
Loading
Loading
Loading
+8 −7
Original line number Diff line number Diff line
@@ -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;
  };
}
})