| Hey everyone,
I'm have little to no knowledge on go and how to build it. Mish-mashing from
other pkg derivations, I wrote the following:
{
buildGoModule,
lib,
fetchFromGitHub,
}:
buildGoModule rec {
pname = "wsl-notify-send";
version = "0.1.871612270";
src = fetchFromGitHub {
owner = "stuartleeks";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-XbBqbuAp4gmD/OBr8sjCUQS1m2eoiMrTKTrt9Dj/70w=";
};
vendorHash = null;
# GOOS = "linux";
meta = with lib; {
description = "WSL replacement for notify-send";
homepage = "https://github.com/stuartleeks/wsl-notify-send";
license = with licenses; [mit];
mainProgram = pname;
};
}
Which fails with
last 10 log lines:
> Running phase: unpackPhase
> unpacking source archive /nix/store/1livjb3n3n2hyzafx8qay42msxi45xnl-source
> source root is source
> Running phase: patchPhase
> Running phase: updateAutotoolsGnuConfigScriptsPhase
> Running phase: configurePhase
> Running phase: buildPhase
> Building subPackage .
> # gopkg.in/toast.v1
> vendor/gopkg.in/toast.v1/toast.go:352:41: unknown field HideWindow in struct literal of type "syscall".SysProcAttr
First searches I did online pointed towards an OS issue so I've tried setting
GOOS='linux' to be resulted in the same error. I also tried to build the
module which is the dependency, toast explicitly however since it doesn't
have a go.mod file it surpassed the amount of knowledge I have over go.
Anybody has an idea how can I drive forward?
|