nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 rustPlatform,
4 fetchFromGitHub,
5 nix-update-script,
6}:
7
8rustPlatform.buildRustPackage rec {
9 pname = "tox-node";
10 version = "0.2.0";
11
12 src = fetchFromGitHub {
13 owner = "tox-rs";
14 repo = "tox";
15 rev = "v${version}";
16 sha256 = "sha256-3ZRpri3WxwHjMq88TxRJAaTXMui8N1uLek+q8g5PGD4=";
17 };
18
19 buildAndTestSubdir = "tox_node";
20
21 cargoHash = "sha256-UNvhls6qY1u9STr8PsgcUfFYRDTlqvxB3M57j/fdkH8=";
22
23 passthru.updateScript = nix-update-script { };
24
25 meta = {
26 description = "Server application to run tox node written in pure Rust";
27 homepage = "https://github.com/tox-rs/tox";
28 license = [ lib.licenses.gpl3Plus ];
29 platforms = lib.platforms.linux;
30 maintainers = with lib.maintainers; [
31 suhr
32 kurnevsky
33 ];
34 mainProgram = "tox-node";
35 };
36}