rux: init at 0.3.0 (#538690)

This commit is contained in:
Arne Keller
2026-07-07 10:41:15 +00:00
committed by GitHub
2 changed files with 65 additions and 0 deletions
+6
View File
@@ -14599,6 +14599,12 @@
github = "kiranshila";
githubId = 6305359;
};
KirCK = {
email = "Arikkenebas09@gmail.com";
github = "AristarhKenebas";
githubId = 142233116;
name = "Aristarh Kenebas";
};
kirelagin = {
email = "kirelagin@gmail.com";
matrix = "@kirelagin:matrix.org";
+59
View File
@@ -0,0 +1,59 @@
{
lib,
llvmPackages_21,
fetchFromGitHub,
cmake,
ninja,
}:
llvmPackages_21.libcxxStdenv.mkDerivation (finalAttrs: {
pname = "rux";
version = "0.3.0";
src = fetchFromGitHub {
owner = "rux-lang";
repo = "Rux";
rev = "v${finalAttrs.version}";
hash = "sha256-GqShkT8uXi0C1W0G2+nuU8p1NcigdfEPOF/Yb5KCOhk=";
};
postPatch = ''
substituteInPlace CMakeLists.txt \
--replace-fail "cmake_minimum_required(VERSION 4.2)" "cmake_minimum_required(VERSION 4.1)"
'';
strictDeps = true;
__structuredAttrs = true;
nativeBuildInputs = [
cmake
ninja
];
buildInputs = [
llvmPackages_21.libcxx
];
cmakeFlags = [
"-DCMAKE_CXX_SCAN_FOR_MODULES=OFF"
];
installPhase = ''
runHook preInstall
mkdir -p $out/bin
cp ../Bin/Release/rux $out/bin/
runHook postInstall
'';
meta = with lib; {
description = "A fast, compiled, strongly typed, multi-paradigm programming language";
homepage = "https://rux-lang.dev";
license = licenses.mit;
maintainers = with maintainers; [
KirCK
lukas-sgx
];
mainProgram = "rux";
platforms = platforms.all;
};
})