2023-03-30 22:05:00 +00:00
|
|
|
{ buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
, lib
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "sleep-on-lan";
|
|
|
|
version = "1.1.1";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "SR-G";
|
|
|
|
repo = pname;
|
|
|
|
rev = "${version}-RELEASE";
|
|
|
|
sha256 = "sha256-WooFGIdXIIoJPMqmPpnT+bc+P+IARMSxa3CvXY9++mw=";
|
|
|
|
};
|
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
sourceRoot = "${src.name}/src";
|
2023-10-09 19:29:22 +00:00
|
|
|
vendorHash = "sha256-JqDDG53khtDdMLVOscwqi0oGviF+3DMkv5tkHvp1gJc=";
|
2023-03-30 22:05:00 +00:00
|
|
|
|
|
|
|
ldflags = [
|
|
|
|
"-s"
|
|
|
|
"-w"
|
|
|
|
"-X main.BuildVersion=${version}"
|
|
|
|
"-X main.BuildVersionLabel=nixpkgs"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/SR-G/sleep-on-lan";
|
2024-01-13 08:15:51 +00:00
|
|
|
description = "Multi-platform process allowing to sleep on LAN a Linux or Windows computer, through wake-on-lan (reversed) magic packets or through HTTP REST requests";
|
2023-03-30 22:05:00 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ devusb ];
|
2024-02-29 20:09:43 +00:00
|
|
|
mainProgram = "sleep-on-lan";
|
2023-03-30 22:05:00 +00:00
|
|
|
};
|
|
|
|
}
|