Merge pull request #330456 from anas-contribs/c3c

c3c: 0.5.5 -> 0.6.1
This commit is contained in:
Florian 2024-07-28 13:19:53 +02:00 committed by GitHub
commit 324ae9a434
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,23 +1,24 @@
{ llvmPackages
, lib
, fetchFromGitHub
, cmake
, python3
, curl
, libxml2
, libffi
, xar
, testers
{
llvmPackages,
lib,
fetchFromGitHub,
cmake,
python3,
curl,
libxml2,
libffi,
xar,
testers,
}:
llvmPackages.stdenv.mkDerivation (finalAttrs: {
pname = "c3c";
version = "0.5.5";
version = "0.6.1";
src = fetchFromGitHub {
owner = "c3lang";
repo = "c3c";
rev = "refs/tags/${finalAttrs.version}";
rev = "refs/tags/v${finalAttrs.version}";
hash = "sha256-iOljE1BRVc92NJZj+nr1G6KkBTCwJEUOadXHUDNoPGk=";
};
@ -26,9 +27,7 @@ llvmPackages.stdenv.mkDerivation (finalAttrs: {
--replace-fail "\''${LLVM_LIBRARY_DIRS}" "${llvmPackages.lld.lib}/lib ${llvmPackages.llvm.lib}/lib"
'';
nativeBuildInputs = [
cmake
];
nativeBuildInputs = [ cmake ];
buildInputs = [
llvmPackages.llvm
@ -36,9 +35,7 @@ llvmPackages.stdenv.mkDerivation (finalAttrs: {
curl
libxml2
libffi
] ++ lib.optionals llvmPackages.stdenv.isDarwin [
xar
];
] ++ lib.optionals llvmPackages.stdenv.isDarwin [ xar ];
nativeCheckInputs = [ python3 ];
@ -52,16 +49,17 @@ llvmPackages.stdenv.mkDerivation (finalAttrs: {
'';
passthru.tests = {
version = testers.testVersion {
package = finalAttrs.finalPackage;
};
version = testers.testVersion { package = finalAttrs.finalPackage; };
};
meta = with lib; {
description = "Compiler for the C3 language";
homepage = "https://github.com/c3lang/c3c";
license = licenses.lgpl3Only;
maintainers = with maintainers; [ luc65r ];
maintainers = with maintainers; [
luc65r
anas
];
platforms = platforms.all;
mainProgram = "c3c";
};