!QCCCSJHEsTIfozrZxz:nixos.org

Nix + Go

234 Members
Go packaging for and with Nixpkgs. | Be excellent to each other.48 Servers

Load older messages


SenderMessageTime
7 Jun 2024
@marcusramberg:matrix.orgMarcusyeah, it did not like that at all. lot of inconsistent vendoring 😕09:07:43
@marcusramberg:matrix.orgMarcuswait, I just did a dumb, it might be working 🙂09:11:20
@katexochen:matrix.orgPaul Meyer (katexochen)https://github.com/NixOS/nixpkgs/issues/318069 19:34:17
10 Jun 2024
@clvxaz:matrix.orgclvxaz joined the room.17:30:09
11 Jun 2024
@kaya:catnip.ee@kaya:catnip.ee changed their profile picture.08:03:43
15 Jun 2024
@nscnt:matrix.org@nscnt:matrix.org left the room.09:34:19
19 Jun 2024
@phanirithvij:matrix.orgloudgolem joined the room.01:47:32
20 Jun 2024
@bullet-bending-koala:matrix.org@bullet-bending-koala:matrix.org left the room.09:08:39
22 Jun 2024
@hdhog:matrix.hdhog.ruhdhog changed their profile picture.13:23:13
@bumperboat:matrix.orgbumperboat (UTC+8) changed their display name from bumperboat (UTC+1) to bumperboat (UTC+2).16:48:08
24 Jun 2024
@danieln:selfnet.de@danieln:selfnet.de joined the room.05:52:54
25 Jun 2024
@axiomss:matrix.org@axiomss:matrix.org joined the room.22:01:54
26 Jun 2024
@rsuds211:matrix.orgRahul Sudharsan joined the room.02:25:03
@d:bugpara.dedebugloop joined the room.13:27:10
27 Jun 2024
@danieln:selfnet.de@danieln:selfnet.de left the room.07:49:38
@4noch:matrix.orgElliot Cameron joined the room.21:21:21
28 Jun 2024
@axiomss:matrix.org@axiomss:matrix.org left the room.04:15:27
1 Jul 2024
@ecmacat:matrix.orgecmacat changed their profile picture.11:17:07
@ecmacat:matrix.orgecmacat changed their profile picture.11:17:37
3 Jul 2024
@anjannath:matrix.org@anjannath:matrix.org joined the room.18:01:31
4 Jul 2024
@eyjhb:eyjhb.dkeyJhb left the room.11:00:43
@philiptaron:matrix.orgPhilip Taron (UTC-8) joined the room.15:53:53
7 Jul 2024
@1h0:matrix.org1H0 left the room.08:53:04
@dminca:matrix.org@dminca:matrix.org joined the room.09:38:43
8 Jul 2024
@kaya:catnip.ee@kaya:catnip.ee changed their profile picture.00:56:17
@octvs:matrix.org@octvs:matrix.org joined the room.07:13:12
@octvs:matrix.org@octvs:matrix.org

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?

07:13:17
@octvs:matrix.org@octvs:matrix.org *

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?

07:14:27
@katexochen:matrix.orgPaul Meyer (katexochen) octvs: From the the Makefile of wsl-notify-send (https://github.com/stuartleeks/wsl-notify-send/blob/main/Makefile#L8) and the readme of toast it looks like this must be build on windows. They also only release binaries for win: https://github.com/stuartleeks/wsl-notify-send/releases/tag/v0.1.871612270 07:35:52
@jrick:zettaport.comjrickfwiw, i tried cross compiling windows cgo executables with nix and ran into some issues. but if you are not using cgo, you can skip all of that hassle and use go's tooling directly to produce executables07:51:24

Show newer messages


Back to Room ListRoom Version: 9