Files
util.nix/package/c/hmpl/default.nix
2025-03-20 18:47:44 +00:00

29 lines
500 B
Nix

{ 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;
};
}