traefik: add djds as maintainer (#377217)
[NixPkgs.git] / pkgs / by-name / la / lazymc / package.nix
blob75a6c1536c7fdecac0f84ceb43769d5048de6dbb
2   lib,
3   rustPlatform,
4   fetchFromGitHub,
5   stdenv,
6   darwin,
7   nix-update-script,
8 }:
10 rustPlatform.buildRustPackage rec {
11   pname = "lazymc";
12   version = "0.2.11";
14   src = fetchFromGitHub {
15     owner = "timvisee";
16     repo = "lazymc";
17     rev = "v${version}";
18     hash = "sha256-uMjM3w78qWnB/sNXRcxl30KJRm0I3BPEOr5IRU8FI0s=";
19   };
21   cargoLock = {
22     lockFile = ./Cargo.lock;
23     outputHashes = {
24       "minecraft-protocol-0.1.0" = "sha256-3eDMj8+Ug46WOl3zRqNxUa+SZr2qlhyi8OSewLu+gI8=";
25     };
26   };
28   buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
29     darwin.apple_sdk.frameworks.CoreServices
30   ];
32   passthru.updateScript = nix-update-script { };
34   meta = with lib; {
35     description = "Remote wake-up daemon for minecraft servers";
36     homepage = "https://github.com/timvisee/lazymc";
37     license = licenses.gpl3Only;
38     maintainers = with maintainers; [
39       h7x4
40       dandellion
41     ];
42     platforms = platforms.unix;
43     mainProgram = "lazymc";
44   };