nixpkgs/pkgs/by-name/la/lazymc/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

43 lines
944 B
Nix
Raw Normal View History

2023-10-23 18:32:48 +00:00
{
lib
, rustPlatform
, fetchFromGitHub
2023-12-07 09:36:34 +00:00
, stdenv
, darwin
2023-10-23 18:32:48 +00:00
, nix-update-script
}:
rustPlatform.buildRustPackage rec {
pname = "lazymc";
2024-03-17 08:33:10 +00:00
version = "0.2.11";
2023-10-23 18:32:48 +00:00
src = fetchFromGitHub {
owner = "timvisee";
repo = "lazymc";
rev = "v${version}";
2024-03-17 08:33:10 +00:00
hash = "sha256-uMjM3w78qWnB/sNXRcxl30KJRm0I3BPEOr5IRU8FI0s=";
2023-10-23 18:32:48 +00:00
};
cargoLock = {
lockFile = ./Cargo.lock;
outputHashes = {
2024-03-17 08:33:10 +00:00
"minecraft-protocol-0.1.0" = "sha256-3eDMj8+Ug46WOl3zRqNxUa+SZr2qlhyi8OSewLu+gI8=";
2023-10-23 18:32:48 +00:00
};
};
2023-12-07 09:36:34 +00:00
buildInputs = lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.CoreServices
];
2023-10-23 18:32:48 +00:00
passthru.updateScript = nix-update-script { };
meta = with lib; {
description = "Remote wake-up daemon for minecraft servers";
homepage = "https://github.com/timvisee/lazymc";
license = licenses.gpl3Only;
maintainers = with maintainers; [ h7x4 dandellion ];
platforms = platforms.unix;
mainProgram = "lazymc";
};
}