nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, rustPlatform
3, fetchCrate
4}:
5
6rustPlatform.buildRustPackage rec {
7 pname = "starlark-rust";
8 version = "0.12.0";
9
10 src = fetchCrate {
11 pname = "starlark_bin";
12 inherit version;
13 hash = "sha256-3+/kEuCb0TYFQ9bS6M13OYN23DWr2DkBRWvhAn8TW5w=";
14 };
15
16 cargoHash = "sha256-60JXCBXsXei0INP0rozWqFU8dKZovJ9mn5ns87ziUac=";
17
18 meta = with lib; {
19 description = "Rust implementation of the Starlark language";
20 homepage = "https://github.com/facebook/starlark-rust";
21 changelog = "https://github.com/facebook/starlark-rust/blob/v${version}/CHANGELOG.md";
22 license = licenses.asl20;
23 maintainers = with maintainers; [ figsoda ];
24 mainProgram = "starlark";
25 };
26}