fut: init at 3.2.13 (#465926)

This commit is contained in:
isabel
2025-11-29 11:36:26 +00:00
committed by GitHub
+55
View File
@@ -0,0 +1,55 @@
{
lib,
stdenv,
fetchFromGitHub,
versionCheckHook,
nix-update-script,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "fut";
version = "3.2.13";
src = fetchFromGitHub {
owner = "fusionlanguage";
repo = "fut";
tag = "fut-${finalAttrs.version}";
hash = "sha256-raYlY3HDL5+lv68IRVUXrpypmXfDkgWzHv/qZVECFhs=";
};
buildPhase = ''
runHook preBuild
make
runHook postBuild
'';
installPhase = ''
runHook preInstall
mkdir -p $out/bin
cp fut $out/bin/
runHook postInstall
'';
nativeInstallCheckInputs = [ versionCheckHook ];
versionCheckProgramArg = "--version";
doInstallCheck = false;
passthru.updateScript = nix-update-script { };
meta = {
description = "Fusion programming language";
longDescription = ''
Fusion is a programming language designed for implementing reusable components (libraries) for C, C++, C#, D, Java, JavaScript, Python, Swift, TypeScript and OpenCL C, all from a single codebase.
'';
homepage = "https://fusion-lang.org";
changelog = "https://github.com/fusionlanguage/fut/releases/tag/fut-${finalAttrs.version}";
license = lib.licenses.gpl3Plus;
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ chillcicada ];
mainProgram = "fut";
};
})