bend: init at 0.2.9

This commit is contained in:
Rishi Kumar 2024-05-20 15:22:37 +05:30
parent bd4c5f46b7
commit 554314fea5

View File

@ -0,0 +1,43 @@
{
rustPlatform,
fetchCrate,
fetchFromGitHub,
lib,
makeWrapper,
hvm,
}:
rustPlatform.buildRustPackage rec {
pname = "Bend";
version = "0.2.9";
src = fetchFromGitHub {
owner = "HigherOrderCO";
repo = "Bend";
rev = "refs/tags/${version}";
hash = "sha256-MEfB2SBJN7uEwfZGoEL7DQXsr1fccdZyGyzHtNv9wow=";
};
cargoHash = "sha256-+i+Y3MgCBVN3REmPwAjm2SiF9FJ0i05czmPKB8JtAFM=";
RUSTC_BOOTSTRAP = true;
nativeBuildInputs = [
hvm
makeWrapper
];
postInstall = ''
wrapProgram $out/bin/bend \
--prefix PATH : ${lib.makeBinPath [ hvm ]}
'';
meta = {
description = "Bend is a massively parallel, high-level programming language";
homepage = "https://higherorderco.com/";
license = lib.licenses.asl20;
mainProgram = "bend";
maintainers = with lib.maintainers; [ k3yss ];
platforms = lib.platforms.unix;
};
}