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

View File

@ -1,4 +1,4 @@
{...}: {
{pkgs, ...}: {
imports = [
./hardware-configuration.nix
../common
@ -44,6 +44,8 @@
};
};
environment.systemPackages = with pkgs; [go-wol];
environment.persistence."/persist" = {
enable = false;
};

View File

@ -4,4 +4,5 @@
astronvim = pkgs.callPackage ./astronvim {};
firefox-mod-blur = pkgs.callPackage ./firefox-mod-blur {};
plymouth-spinner-monochrome = pkgs.callPackage ./plymouth-spinner-monochrome {};
go-wol = pkgs.callPackage ./go-wol {};
}

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;
};
}