mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-14 19:30:21 +00:00
52 lines
1.0 KiB
Nix
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;
|
|
};
|
|
})
|