Files
nixpkgs/pkgs/by-name/ob/objfw/package.nix
2026-07-11 23:15:23 +00:00

52 lines
1.0 KiB
Nix

{
autoconf,
autogen,
automake,
clangStdenv,
fetchFromGitea,
gitUpdater,
lib,
objfw,
writeTextDir,
}:
clangStdenv.mkDerivation (finalAttrs: {
pname = "objfw";
version = "1.5.7";
src = fetchFromGitea {
domain = "git.nil.im";
owner = "ObjFW";
repo = "ObjFW";
rev = "${finalAttrs.version}-release";
hash = "sha256-3MdQG2pVjlBdbmBzTrrKdkbSzsvjZWZRoSPsN+MURCQ=";
};
nativeBuildInputs = [
automake
autogen
autoconf
];
preConfigure = "./autogen.sh";
configureFlags = [
"--without-tls"
];
doCheck = true;
passthru.tests = {
build-hello-world = (import ./test-build-and-run.nix) { inherit clangStdenv objfw writeTextDir; };
};
passthru.updateScript = gitUpdater { rev-suffix = "-release"; };
meta = {
description = "Portable framework for the Objective-C language";
homepage = "https://objfw.nil.im";
license = lib.licenses.lgpl3;
maintainers = [ lib.maintainers.steeleduncan ];
platforms = lib.platforms.linux;
};
})