nixpkgs/pkgs/by-name/be/bend/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

41 lines
851 B
Nix
Raw Normal View History

2024-05-20 09:52:37 +00:00
{
rustPlatform,
fetchFromGitHub,
lib,
makeWrapper,
hvm,
}:
rustPlatform.buildRustPackage rec {
pname = "Bend";
2024-08-01 21:54:46 +00:00
version = "0.2.36";
2024-05-20 09:52:37 +00:00
src = fetchFromGitHub {
owner = "HigherOrderCO";
repo = "Bend";
rev = "refs/tags/${version}";
2024-08-01 21:54:46 +00:00
hash = "sha256-j4YMdeSxIbhp7xT42L42/y0ZncFPKBkxTh0LgO/RjkY=";
2024-05-20 09:52:37 +00:00
};
2024-08-01 21:54:46 +00:00
cargoHash = "sha256-jPxPx/e6rv5REP+K1ZLg9ffJKKVNLqR/vd33xKs+Ut4=";
2024-05-20 09:52:37 +00:00
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;
};
}