41 lines
826 B
Nix
41 lines
826 B
Nix
|
|
{
|
||
|
|
rustPlatform,
|
||
|
|
fetchFromGitHub,
|
||
|
|
lib,
|
||
|
|
makeWrapper,
|
||
|
|
hvm,
|
||
|
|
}:
|
||
|
|
|
||
|
|
rustPlatform.buildRustPackage rec {
|
||
|
|
pname = "Bend";
|
||
|
|
version = "0.2.37";
|
||
|
|
|
||
|
|
src = fetchFromGitHub {
|
||
|
|
owner = "HigherOrderCO";
|
||
|
|
repo = "Bend";
|
||
|
|
tag = version;
|
||
|
|
hash = "sha256-8uBEI9GKUETk8t6Oanb0OECe3MlJ486QnccOuhIxPuY=";
|
||
|
|
};
|
||
|
|
|
||
|
|
cargoHash = "sha256-xac5Gb0hcamT3vymq6SKaMiuEn8NU9Bfhu+t/dcjhTE=";
|
||
|
|
|
||
|
|
nativeBuildInputs = [
|
||
|
|
hvm
|
||
|
|
makeWrapper
|
||
|
|
];
|
||
|
|
|
||
|
|
postInstall = ''
|
||
|
|
wrapProgram $out/bin/bend \
|
||
|
|
--prefix PATH : ${lib.makeBinPath [ hvm ]}
|
||
|
|
'';
|
||
|
|
|
||
|
|
meta = {
|
||
|
|
description = "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;
|
||
|
|
};
|
||
|
|
}
|