+/config

my dotfiles and nix configuration

git clone https://git.julia.blue/+/config

Julia RyanAdd aitch's melee modding tools0487772

main
1.3 KiB35 linesraw
1{ stdenv, fetchFromGitHub, }: stdenv.mkDerivation {
2  pname = "hmex";
3  version = "2025-09-05";
4
5  src = fetchFromGitHub {
6    owner = "AlexanderHarrison";
7    repo = "cdat";
8    rev = "1059572f8db70485755d81e0721c9f38493046e7";
9    hash = "sha256-Yh6OlC1OgzzPBJHt2BmwHsSdi6n0MEMsas3369nzDNE=";
10  };
11
12  buildPhase = ''
13    cc src/hmex.c -o hmex -O2 \
14      -Wall -Wextra -Wpedantic -Wuninitialized -Wcast-qual -Wdisabled-optimization \
15      -Winit-self -Wlogical-op -Wmissing-include-dirs -Wredundant-decls -Wshadow \
16      -Wundef -Wstrict-prototypes -Wpointer-to-int-cast -Wint-to-pointer-cast \
17      -Wconversion -Wduplicated-cond -Wduplicated-branches -Wformat=2 \
18      -Wshift-overflow=2 -Wint-in-bool-context -Wvector-operation-performance \
19      -Wvla -Wdisabled-optimization -Wredundant-decls -Wmissing-parameter-type \
20      -Wold-style-declaration -Wlogical-not-parentheses -Waddress \
21      -Wmemset-transposed-args -Wmemset-elt-size -Wsizeof-pointer-memaccess \
22      -Wwrite-strings -Wtrampolines -Werror=implicit-function-declaration
23  '';
24
25  installPhase = ''
26    strip $pname
27    mkdir -p $out/bin
28    cp $pname $out/bin/$pname
29  '';
30
31  meta = {
32    description = "Fast, simple, portable SSBM dat file modification tools";
33    homepage = "https://github.com/AlexanderHarrison/cdat";
34  };
35}