sleep-on-lan: init at 1.1.1
This commit is contained in:
parent
a0be54df4c
commit
430b8f07b5
34
pkgs/tools/networking/sleep-on-lan/default.nix
Normal file
34
pkgs/tools/networking/sleep-on-lan/default.nix
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
{ 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 = "source/src";
|
||||||
|
vendorSha256 = "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 ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -30691,6 +30691,8 @@ with pkgs;
|
||||||
|
|
||||||
slack-term = callPackage ../applications/networking/instant-messengers/slack-term { };
|
slack-term = callPackage ../applications/networking/instant-messengers/slack-term { };
|
||||||
|
|
||||||
|
sleep-on-lan = callPackage ../tools/networking/sleep-on-lan { };
|
||||||
|
|
||||||
slweb = callPackage ../applications/misc/slweb { };
|
slweb = callPackage ../applications/misc/slweb { };
|
||||||
|
|
||||||
sonixd = callPackage ../applications/audio/sonixd { };
|
sonixd = callPackage ../applications/audio/sonixd { };
|
||||||
|
|
Loading…
Reference in a new issue