!QCCCSJHEsTIfozrZxz:nixos.org

Nix + Go

236 Members
Go packaging for and with Nixpkgs. | Be excellent to each other.49 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
13 Jan 2024
@qbit:tapenet.org@qbit:tapenet.orgall your deps go in buildInputs01:02:14
@fractivore:cyberia.clubsymysthanks again for all the help01:25:30
@qbit:tapenet.org@qbit:tapenet.orgnp01:38:52
14 Jan 2024
@fractivore:cyberia.clubsymys

Finally got it to build and work.... Repo here: https://github.com/mplsbugbounty/signASL-matrix/tree/master
I just have a couple of follow-up questions.

  1. How could I have figured out the correct usage of buildGoModule myself? I tried searching https://search.nixos.org/packages (as well as flakes and options on the same site for good measure). Nothing came up, I presume because it's a function and not an option, flake, or package. Where is it defined in nixpkgs?
  2. I got it to build with a default.nix that includes
let
  lib = import <nixpkgs> {};
in

lib.buildGoModule rec {

  pname = "signASLbot";
  version = "";

  buildInputs = [
    lib.pkg-config
...

...etc. But I notice nothing in nixpkgs does it this way, instead the whole default.nix file defines a function of an attribute set. When I tried writing my file this way I wasn't able to figure out how to call nix-build to get it to populate this attribute set correctly. Not sure exactly how to phrase this question, but how can I make my nix file more consistent with normal design patterns, and then how do I use it?

17:45:28
@qbit:tapenet.org@qbit:tapenet.orgso search.nixos.org just has existing packages and moudle docs17:49:51
@qbit:tapenet.org@qbit:tapenet.orgnothing related to building packages17:49:55

Show newer messages


Back to Room ListRoom Version: 9