test: fix: test raise generic

This commit is contained in:
2025-03-20 18:47:44 +00:00
parent c91b52b448
commit 647155f859
5 changed files with 60 additions and 36 deletions

View File

@@ -0,0 +1,28 @@
{ stdenv, gcc, lib, libhectic }:
stdenv.mkDerivation {
pname = "libhectic";
version = "1.0";
src = ./.;
doCheck = true;
buildInputs = [ libhectic ];
buildPhase = ''
mkdir -p target
${gcc}/bin/cc -Wall -Wextra -g \
-pedantic -fsanitize=address -c hmpl.c \
-l:libhectic.a -o target/libhectic.o
'';
checkPhase = '' '';
installPhase = ''
mkdir -p $out/lib $out/include
'';
meta = {
description = "libhectic";
license = lib.licenses.mit;
};
}