mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 04:46:43 +00:00
36 lines
904 B
Nix
36 lines
904 B
Nix
{ 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=";
|
|
};
|
|
|
|
sourceRoot = "${src.name}/src";
|
|
vendorHash = "sha256-JqDDG53khtDdMLVOscwqi0oGviF+3DMkv5tkHvp1gJc=";
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-X main.BuildVersion=${version}"
|
|
"-X main.BuildVersionLabel=nixpkgs"
|
|
];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/SR-G/sleep-on-lan";
|
|
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";
|
|
license = licenses.asl20;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ devusb ];
|
|
mainProgram = "sleep-on-lan";
|
|
};
|
|
}
|