!QCCCSJHEsTIfozrZxz:nixos.org

Nix + Go

217 Members
Go packaging for and with Nixpkgs. | Be excellent to each other.46 Servers

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


SenderMessageTime
5 Jan 2024
@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.org@faust403:matrix.org

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.org@faust403:matrix.org *

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.org@faust403:matrix.org *

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.dk@eyjhb:eyjhb.dk 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
@fractivore:cyberia.clubSYMYƧ

where shell.nix is:

  1 {·lib↵                                                                          
  2 ,·buildGoModule↵                                                                
  3 ,·fetchFromGitHub↵                                                              
  4 }:↵                                                                             
  5 ↵                                                                               
  6 buildGoModule·rec·{↵                                                            
  7 ··pname·=·"signASLbot";↵                                                        
  8 ··#version·=·"1.1.6";↵                                                          
  9 ↵                                                                               
 10 ··src·=·fetchFromGitHub·{↵                                                      
 11 ····owner·=·"mplsbugbounty";↵                                                   
 12 ····repo·=·pname;↵                                                              
 13 ···#·rev·=·"v${version}";↵                                                      
 14 ···#·sha256·=·"sha256-1EnKheHaS1kxw0cjxCahT3rUWBXiqxjKefrDBI2xIvY=";↵           
 15 ··};↵                                                                           
 16 ↵                                                                               
 17 ··#vendorHash·=·"sha256-egjjSEZH8F6UMbnkz3xytIzdW/oITB3RL1ddxrmvSZM=";↵         
 18 ↵                                                                               
 19 ··#·tests·require·internet·access·and·API·keys↵                                 
 20 ··doCheck·=·false;↵                                                             
 21 ↵                                                                               
 22 ··meta·=·with·lib;·{↵                                                           
 23 ····description·=·"";↵                                                          
 24 ····longDescription·=·''↵                                                       
 25 →       It's·a·pretty·basic·little·bot·really!↵                                 
 26 ····'';↵                                                                        
 27 ····homepage·=·"https://github.com/mplsbugbounty/signASLBot";↵                  
 28 ····#license·=·licenses.mit;↵                                                   
 29 ····#maintainers·=·with·maintainers;·[·fab·];↵                                  
 30 ··};↵                                                                           
 31 }↵ 
23:55:53
@fractivore:cyberia.clubSYMYƧ ( That's not the right info for my repo, but I haven't gotten to that step yet, because I can't get the build to even start. I assume I'm doing something wrong with the '<nixpkgs>' part, trying to build all of nixpkgs or something, but I don't know what I need to supply it with instead ) 23:58:22
10 Jan 2024
@fractivore:cyberia.clubSYMYƧ And what exactly is the lib argument suppose to be? 00:03:24
@qbit:tapenet.org@qbit:tapenet.org i think you need --attr signASLbot 01:05:30
@qbit:tapenet.org@qbit:tapenet.org not sure what lib argument you mean 01:05:46

Show newer messages


Back to Room ListRoom Version: 9