Unverified Commit ec709647 authored by Aleksana's avatar Aleksana Committed by GitHub
Browse files

units: Fix build error with GCC 15 (#476148)

parents 2d4a7c30 490da273
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -21,6 +21,9 @@ stdenv.mkDerivation (finalAttrs: {
    hash = "sha256-HlAsTt+s8gspKEcWxy5d21GklaI2XXsD55YElMSgyQI=";
  };

  # Until upstream updates their code to work with GCC 15.
  env.NIX_CFLAGS_COMPILE = "-std=gnu17";

  outputs = [
    "out"
    "info"
@@ -71,7 +74,7 @@ stdenv.mkDerivation (finalAttrs: {
    '';
    license = with lib.licenses; [ gpl3Plus ];
    mainProgram = "units";
    maintainers = [ ];
    maintainers = with lib.maintainers; [ galen ];
    platforms = lib.platforms.all;
  };
})