mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
c3c: rfc format
This commit is contained in:
parent
49fb0494b9
commit
817eb5cf22
@ -1,13 +1,14 @@
|
||||
{ llvmPackages
|
||||
, lib
|
||||
, fetchFromGitHub
|
||||
, cmake
|
||||
, python3
|
||||
, curl
|
||||
, libxml2
|
||||
, libffi
|
||||
, xar
|
||||
, testers
|
||||
{
|
||||
llvmPackages,
|
||||
lib,
|
||||
fetchFromGitHub,
|
||||
cmake,
|
||||
python3,
|
||||
curl,
|
||||
libxml2,
|
||||
libffi,
|
||||
xar,
|
||||
testers,
|
||||
}:
|
||||
|
||||
llvmPackages.stdenv.mkDerivation (finalAttrs: {
|
||||
@ -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 anas ];
|
||||
maintainers = with maintainers; [
|
||||
luc65r
|
||||
anas
|
||||
];
|
||||
platforms = platforms.all;
|
||||
mainProgram = "c3c";
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user