Commit Graph

13 Commits

Author SHA1 Message Date
Alexis Hildebrandt
755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00
h7x4
8121f3559a
treewide: add mainProgram 2024-02-11 03:19:15 +01:00
Sergei Trofimovich
b867bc357a zsnes: amend fortify3 patch and fix initialization
I was too eager fixing out-of-bounds access and did not notice that
loop increment is `+= 4` instead of `+= 1`. The loop condition was fine
as is.
2023-11-02 14:58:13 +00:00
Sergei Trofimovich
0e0863ee38 zsnes: fix buffer size marking to avoid crash on _FORTIFY_SOURCE=3
Without the change `zsnesn` startup crashes with:

    $ gdb zsnes
    *** buffer overflow detected ***: terminated
    ...
    #7  0x08057c14 in memset (__len=2, __ch=255, __dest=<optimized out>) at
      ...-glibc-2.38-23-dev/include/bits/string_fortified.h:59
2023-11-02 12:40:33 +00:00
Sergei Trofimovich
ef34e71d89 zsnes: fix build against zlib-1.3
Without the change builda fails on `master` as
https://hydra.nixos.org/build/238481288/nixlog/3:

    checking for zlib - version >= 1.2.3... 1.3, bad version string given
        by zlib, sometimes due to very old zlibs that didnt correctly
        define their version. Please upgrade if you are running an
        old zlib... no

The failure happens due to 2-digit zlib version string.
Add a trivial change to allow 2-digit support in addition to existing
3-digit ones..
2023-10-25 22:49:52 +01:00
R. Ryantm
93f1dd1e65 zsnes2: 2.0.10 -> 2.0.12 2023-05-12 20:42:55 -03:00
Artturin
f9fdf2d402 treewide: move NIX_CFLAGS_COMPILE to the env attrset
with structuredAttrs lists will be bash arrays which cannot be exported
which will be a issue with some patches and some wrappers like cc-wrapper

this makes it clearer that NIX_CFLAGS_COMPILE must be a string as lists
in env cause a eval failure
2023-02-22 21:23:04 +02:00
Artturin
6f6cc4a22d treewide: use toString on list NIX_CFLAGS_COMPILE
with structuredAttrs lists will be bash arrays which cannot be exported
which will be a issue with some patches and some wrappers like cc-wrapper
2023-02-22 21:23:04 +02:00
Anderson Torres
2e49ab3319 zsnes2: init at 2.0.10 2023-01-22 20:26:20 -03:00
Sergei Trofimovich
eccb0a9b80 zsnes: pin to c++14 to fix build with gcc-11
Without the change build on `master` fails as:

    jma/jma.h:67:28: error: ISO C++17 does not allow dynamic exception specifications
       67 |     jma_open(const char *) throw(jma_errors);
          |                            ^~~~~

ZHF: https://github.com/NixOS/nixpkgs/issues/199919
2022-11-06 23:57:58 +00:00
Sergei Trofimovich
72e40c2bd2 zsnes: add -fcommon workaround
Workaround build failure on -fno-common toolchains like upstream
gcc-10. Otherwise build fails as:

    ld: initc.o:(.bss+0x28): multiple definition of `HacksDisable'; cfg.o:(.bss+0x59e3): first defined here
2022-06-05 07:52:34 +01:00
K900
cb2cfba6f7 treewide: switch all desktop file generators to new API
Notably:
- remove explicit arguments that match the defaults
- convert everything to the right Nix types
2022-02-25 13:40:38 -08:00
AndersonTorres
8d65e832f0 Move misc/emulators to applications/emulators - part 1
Emulators form a class by themselves. So, they should be moved to applications/.
2022-02-16 01:38:20 -03:00