add derivation for go-wol

This commit is contained in:
2024-10-17 13:57:22 +05:30
parent bfc34a0011
commit aa00b44675
3 changed files with 31 additions and 1 deletions

27
pkgs/go-wol/default.nix Normal file
View File

@ -0,0 +1,27 @@
{
lib,
buildGoModule,
fetchFromGitHub,
...
}: let
version = "2.0.1";
in
buildGoModule {
pname = "go-wol";
inherit version;
src = fetchFromGitHub {
owner = "sabhiram";
repo = "go-wol";
rev = "v${version}";
hash = "sha256-iV3p0PjRK0ItfOaRJoS30iZC+O3lNPWfcRb3pfv60RY=";
};
vendorHash = "sha256-Ze928UnuvScA32fglTYkQx+XE15BxSB6vNa9OSyhN3w=";
meta = with lib; {
homepage = "https://github.com/sabhiram/go-wol";
description = "Simple wake on LAN magic packet generator for golang";
license = licenses.mit;
};
}