Commit 3638bf86 authored by Sergei Trofimovich's avatar Sergei Trofimovich
Browse files

freedroid: set `-std=gnu17` to fix `gcc-15` build

Without the change the build fails on `master` as
https://hydra.nixos.org/build/319903242:

    struct.h:40:14: error: 'bool' cannot be defined via 'typedef'
       40 | typedef char bool;
          |              ^~~~
parent 2e0b6e1a
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -47,6 +47,9 @@ stdenv.mkDerivation rec {
    touch NEWS
  '';

  # DOes not build on -std=c23 due to `bool` collision.
  env.NIX_CFLAGS_COMPILE = "-std=gnu17";

  postInstall = ''
    mkdir -p $out/share/icons/hicolor/32x32/apps
    convert graphics/paraicon.bmp $out/share/icons/hicolor/32x32/apps/freedroid.png