From 93a201c4b609e7570b045a866291b7fbff4910c4 Mon Sep 17 00:00:00 2001 From: Diego Date: Sat, 30 May 2026 16:12:43 +0200 Subject: [PATCH] barracuda: init at 0.5 --- pkgs/by-name/ba/barracuda/package.nix | 46 +++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 pkgs/by-name/ba/barracuda/package.nix diff --git a/pkgs/by-name/ba/barracuda/package.nix b/pkgs/by-name/ba/barracuda/package.nix new file mode 100644 index 000000000000..e633303f3a60 --- /dev/null +++ b/pkgs/by-name/ba/barracuda/package.nix @@ -0,0 +1,46 @@ +{ + lib, + stdenv, + fetchFromGitHub, + versionCheckHook, +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "barracuda"; + version = "0.5.0"; + + src = fetchFromGitHub { + owner = "Zaneham"; + repo = "BarraCUDA"; + tag = "v${finalAttrs.version}"; + hash = "sha256-WQGnW7fpTIJuUkf9OYWPPWbE4VMhfff32bKGR9e01oQ="; + }; + + strictDeps = true; + __structuredAttrs = true; + + enableParallelBuilding = true; + + installPhase = '' + runHook preInstall + + install -Dm755 barracuda -t $out/bin + + runHook postInstall + ''; + + doInstallCheck = true; + nativeInstallCheckInputs = [ + versionCheckHook + ]; + + meta = { + description = "Multi architecture, multi language compiler with the intended goal of allowing for cross platform development on GPU's and CPU's"; + homepage = "https://github.com/Zaneham/BarraCUDA"; + changelog = "https://github.com/Zaneham/BarraCUDA/releases/tag/${finalAttrs.src.tag}"; + maintainers = with lib.maintainers; [ dstremur ]; + license = lib.licenses.asl20; + platforms = [ "x86_64-linux" ]; + mainProgram = "barracuda"; + }; +})