!QCCCSJHEsTIfozrZxz:nixos.org

Nix + Go

241 Members
Go packaging for and with Nixpkgs. | Be excellent to each other.51 Servers

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


SenderMessageTime
5 Jan 2024
@faust403:matrix.orgVladislav VasilevOh, sorry for that. Okay, I think I got it17:57:15
@qbit:tapenet.org@qbit:tapenet.orgtypically the shell.nix stuff is used for development - like you are going to be making changes to the software.. and need to install all the deps and what not17:58:05
@qbit:tapenet.org@qbit:tapenet.orgit's not used for "installing software into the system"17:58:19
@faust403:matrix.orgVladislav Vasilevokay, the right thing then do that: nix-shell -E 'let pkgs = import <nixpkgs-unstable> { }; in pkgs.callPackage ./neutron/default.nix { }'17:59:56
@faust403:matrix.orgVladislav VasilevOr whatever nixpkgs in system currently installed18:00:18
@qbit:tapenet.org@qbit:tapenet.org if you want it installed and usable across reboots / nixos rebuilds you must put it in your configuration.nix or nixpkgs upstream 18:00:53
@faust403:matrix.orgVladislav VasilevSo, and how paths are adding to PATH ? I have no custom installation phase, hovewer, I can see neutrond drv in /nix/store. How to add it to shell ?18:10:57
@faust403:matrix.orgVladislav Vasilev * So, and how paths are adding to PATH when shell launching ? I have no custom installation phase, hovewer, I can see neutrond drv in /nix/store. How to add it to shell ?18:11:08
@faust403:matrix.orgVladislav Vasilev * So, and how paths are adding to PATH when shell launching ? I have no custom installation phase, hovewer, I can see neutrond drv in /nix/store. How to add it's bin to shell ?18:11:18
@faust403:matrix.orgVladislav VasilevProbably add it to buildInputs18:12:55
@faust403:matrix.orgVladislav VasilevYep, one moment18:12:58
@qbit:tapenet.org@qbit:tapenet.orgno18:13:07
@qbit:tapenet.org@qbit:tapenet.orghttps://jorel.dev/NixOS4Noobs/installingprogs.html18:14:02
@qbit:tapenet.org@qbit:tapenet.org environment.systemPackages 18:14:30
@faust403:matrix.orgVladislav Vasilev

anyway I did this, but I don't think it's a good solution even for a temporary package

let
  pkgs = import <nixpkgs-unstable> { };
in pkgs.mkShell rec {

  buildInputs = [
    (pkgs.callPackage ./. { })
  ];
}
18:19:22
@faust403:matrix.orgVladislav Vasilev *

anyway I did this, but I don't think it's a good solution even for a temporary shell

let
  pkgs = import <nixpkgs-unstable> { };
in pkgs.mkShell rec {

  buildInputs = [
    (pkgs.callPackage ./. { })
  ];
}
18:19:32
@faust403:matrix.orgVladislav Vasilev *

anyway I did this, but I don't think it's a good solution even for a temporary shell

let
  pkgs = import <nixpkgs-unstable> { };
in pkgs.mkShell rec {
  buildInputs = [
    (pkgs.callPackage ./. { })
  ];
}
18:20:09
6 Jan 2024
@eyjhb:eyjhb.dkeyJhb set a profile picture.14:00:01
7 Jan 2024
@katexochen:matrix.orgPaul Meyer (katexochen)https://github.com/NixOS/nixpkgs/pull/276685 https://github.com/NixOS/nixpkgs/pull/27811509:31:18
8 Jan 2024
@katexochen:matrix.orgPaul Meyer (katexochen)https://github.com/NixOS/nixpkgs/pull/27939107:47:28
9 Jan 2024
@fractivore:cyberia.clubSYMYƧ

Hi folks, I am trying to understand how to actually build a module with buildGoModule. I have tried, for example:
nix-build '<nixpkgs>' ./shell.nix
result:

nix-build '<nixpkgs>' ./shell.nix
error: Please be informed that this pseudo-package is not the only part of
       Nixpkgs that fails to evaluate. You should not evaluate entire Nixpkgs
       without some special measures to handle failing packages, like those taken
       by Hydra.

23:55:11

Show newer messages


Back to Room ListRoom Version: 9