mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 17:03:01 +00:00
d4a9198797
These updates are coupled because bend depends on exact hvm version. Also removes IOKit from hvm's buildInputs on darwin. This was a holdover from HVM1, which needed it. HVM2 does not. Also deletes unused unused arguments from the hvm derivation. Also migrates hvm to pkgs/by-name.
41 lines
851 B
Nix
41 lines
851 B
Nix
{
|
|
rustPlatform,
|
|
fetchFromGitHub,
|
|
lib,
|
|
makeWrapper,
|
|
hvm,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "Bend";
|
|
version = "0.2.34";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "HigherOrderCO";
|
|
repo = "Bend";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-3leAt1M3Six5+KcCcz7sorpVHGkKj7xGWZ0KJnh+bNs=";
|
|
};
|
|
|
|
cargoHash = "sha256-VynLnpZLUCqclIlbt7y6kd8ZJQGLa892J2UjDATgAhE=";
|
|
|
|
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;
|
|
};
|
|
}
|