diff options
Diffstat (limited to 'pkgs/development/compilers/c3c/default.nix')
-rw-r--r-- | pkgs/development/compilers/c3c/default.nix | 65 |
1 files changed, 0 insertions, 65 deletions
diff --git a/pkgs/development/compilers/c3c/default.nix b/pkgs/development/compilers/c3c/default.nix deleted file mode 100644 index 01cc7fa28ce3..000000000000 --- a/pkgs/development/compilers/c3c/default.nix +++ /dev/null @@ -1,65 +0,0 @@ -{ - llvmPackages, - lib, - fetchFromGitHub, - cmake, - python3, - curl, - libxml2, - libffi, - xar, - versionCheckHook, -}: - -llvmPackages.stdenv.mkDerivation (finalAttrs: { - pname = "c3c"; - version = "0.6.2"; - - src = fetchFromGitHub { - owner = "c3lang"; - repo = "c3c"; - rev = "refs/tags/v${finalAttrs.version}"; - hash = "sha256-bGMtrdwjlTxEQdsasOvVuI+mRzir/tnENCIfy1/6JMM="; - }; - - postPatch = '' - substituteInPlace CMakeLists.txt \ - --replace-fail "\''${LLVM_LIBRARY_DIRS}" "${llvmPackages.lld.lib}/lib ${llvmPackages.llvm.lib}/lib" - ''; - - nativeBuildInputs = [ cmake ]; - - buildInputs = [ - llvmPackages.llvm - llvmPackages.lld - curl - libxml2 - libffi - ] ++ lib.optionals llvmPackages.stdenv.isDarwin [ xar ]; - - nativeCheckInputs = [ python3 ]; - - doCheck = llvmPackages.stdenv.system == "x86_64-linux"; - - checkPhase = '' - runHook preCheck - ( cd ../resources/testproject; ../../build/c3c build ) - ( cd ../test; python src/tester.py ../build/c3c test_suite ) - runHook postCheck - ''; - - nativeInstallCheckInputs = [ versionCheckHook ]; - doInstallCheck = true; - - meta = with lib; { - description = "Compiler for the C3 language"; - homepage = "https://github.com/c3lang/c3c"; - license = licenses.lgpl3Only; - maintainers = with maintainers; [ - luc65r - anas - ]; - platforms = platforms.all; - mainProgram = "c3c"; - }; -}) |