nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 rustPlatform,
4 fetchCrate,
5 nix-update-script,
6}:
7
8rustPlatform.buildRustPackage (finalAttrs: {
9 pname = "rune";
10 version = "0.14.1";
11
12 src = fetchCrate {
13 pname = "rune-cli";
14 inherit (finalAttrs) version;
15 hash = "sha256-Y/iCH6hwYRhDnu+lPVcJd2YaK3c4YJbfp9VEP1/c1ic=";
16 };
17
18 cargoHash = "sha256-Xp87BvDh3uPtvUMmG1R8g6lEZcf/frEHVXdQ/+kV5OI=";
19
20 env = {
21 RUNE_VERSION = finalAttrs.version;
22 };
23
24 passthru.updateScript = nix-update-script { };
25
26 meta = {
27 description = "Interpreter for the Rune Language, an embeddable dynamic programming language for Rust";
28 homepage = "https://rune-rs.github.io/";
29 changelog = "https://github.com/rune-rs/rune/releases/tag/${finalAttrs.version}";
30 license = with lib.licenses; [
31 asl20
32 mit
33 ];
34 maintainers = [ ];
35 mainProgram = "rune";
36 };
37})