mirror of
https://github.com/tuxdotrs/tawm.git
synced 2025-07-05 20:56:33 +05:30
add derivation for go-wol
This commit is contained in:
@ -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;
|
||||
};
|
||||
|
@ -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
27
pkgs/go-wol/default.nix
Normal 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;
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user