1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-19 12:11:28 +00:00

c3c: init at unstable-2021-07-30

This commit is contained in:
Lucas Ransan 2021-07-27 19:35:23 +02:00
parent beb353c776
commit fe6caae93d
No known key found for this signature in database
GPG key ID: 37E8293E1B8B2307
2 changed files with 51 additions and 0 deletions

View file

@ -0,0 +1,47 @@
{ llvmPackages
, lib
, fetchFromGitHub
, cmake
, python3
}:
llvmPackages.stdenv.mkDerivation rec {
pname = "c3c";
version = "unstable-2021-07-30";
src = fetchFromGitHub {
owner = "c3lang";
repo = pname;
rev = "2246b641b16e581aec9059c8358858e10a548d94";
sha256 = "VdMKdQsedDQCnsmTxO4HnBj5GH/EThspnotvrAscSqE=";
};
nativeBuildInputs = [ cmake ];
buildInputs = [
llvmPackages.llvm
llvmPackages.lld
];
checkInputs = [ python3 ];
doCheck = true;
checkPhase = ''
( cd ../resources/testproject; ../../build/c3c build )
( cd ../test; python src/tester.py ../build/c3c test_suite )
'';
installPhase = ''
install -Dm755 c3c $out/bin/c3c
cp -r lib $out
'';
meta = with lib; {
description = "Compiler for the C3 language";
homepage = "https://github.com/c3lang/c3c";
license = licenses.lgpl3Only;
maintainers = with maintainers; [ luc65r ];
platforms = platforms.all;
};
}

View file

@ -14337,6 +14337,10 @@ in
c2ffi = callPackage ../development/tools/misc/c2ffi { };
c3c = callPackage ../development/compilers/c3c {
llvmPackages = llvmPackages_11;
};
swfmill = callPackage ../tools/video/swfmill { };
swftools = callPackage ../tools/video/swftools {