| 5 Jan 2024 |
Vladislav Vasilev | So, 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 |
Vladislav 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 |
Vladislav 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 |
Vladislav Vasilev | Probably add it to buildInputs | 18:12:55 |
Vladislav Vasilev | Yep, one moment | 18:12:58 |
@qbit:tapenet.org | no | 18:13:07 |
@qbit:tapenet.org | https://jorel.dev/NixOS4Noobs/installingprogs.html | 18:14:02 |
@qbit:tapenet.org | environment.systemPackages | 18:14:30 |
Vladislav 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 |
Vladislav 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 |
Vladislav 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 set a profile picture. | 14:00:01 |
| 7 Jan 2024 |
Paul Meyer (katexochen) | https://github.com/NixOS/nixpkgs/pull/276685
https://github.com/NixOS/nixpkgs/pull/278115 | 09:31:18 |
| 8 Jan 2024 |
Paul Meyer (katexochen) | https://github.com/NixOS/nixpkgs/pull/279391 | 07:47:28 |
| 9 Jan 2024 |
symys | 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 |
symys | 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 |
symys | ( 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 |
symys | And what exactly is the lib argument suppose to be? | 00:03:24 |
@qbit:tapenet.org | i think you need --attr signASLbot | 01:05:30 |
@qbit:tapenet.org | not sure what lib argument you mean | 01:05:46 |
symys | In reply to @qbit:tapenet.org i think you need --attr signASLbot thanks, I'll give it a shot once I get a chance | 01:46:28 |
symys | In reply to @qbit:tapenet.org not sure what lib argument you mean Like from here:
meta = with lib; {
description = "Neutron node";
longDescription = ''
Neutron node to interact with neutron blockchain
'';
homepage = "https://github.com/neutron-org/neutron";
license = licenses.asl20; # Apache license
maintainers = with maintainers; [
pr0n00gler
foxpy
];
platforms = platforms.all;
};
| 01:47:34 |
symys | And
1 {·lib↵
2 ,·buildGoModule↵
3 ,·fetchFromGitHub↵
4 }:↵
| 01:48:16 |
symys | It's a function argument right? | 01:48:38 |
@qbit:tapenet.org | oh, lib is the "nixpkgs" library | 02:12:15 |
@qbit:tapenet.org | https://teu5us.github.io/nix-lib.html | 02:12:36 |
@qbit:tapenet.org | the "with lib" is effectively exposing the stuff in lib to the attrs that follow - so you don't have to type lib.maintainers.foxpy or lib.licenses.... | 02:13:53 |
symys | Ohhhhh okay thank you!! | 02:15:37 |
@qbit:tapenet.org | np | 02:16:25 |
| 11 Jan 2024 |
symys | Okay so I updated my shell.nix to:
1 let↵
2 ··lib·=·import·<nixpkgs>·{};↵
3 in↵
4 ↵
5 lib.buildGoModule·rec·{↵
6 ··pname·=·"signASLbot";↵
7 ··version·=·"";↵
8 ↵
9 ··src·=·lib.fetchFromGitHub·{↵
10 ····url·=·"https://github.com/mplsbugbounty/signASLBot/archive/refs/heads/main.zip";↵
11 ····owner·=·"mplsbugbounty";↵
12 ····repo·=·pname;↵
13 ····rev·=·"794245ee556b3ce80991872b5a59e9a810250c7d";↵
14 ····sha256·=·"0s5qqmzp793012ynxyrlibi6g4xacvgs59z56dfh4ll4z2gv41md";↵
15 ··};↵
16 ↵
17 ··vendorHash·=·"sha256-9OY34TlxbvqNfGbDqQyovk+HWCCIUZOorbrH/5rhO3M";↵
18 ↵
19 ··meta·=·with·lib;·{↵
20 ····description·=·"";↵
21 ····longDescription·=·''↵
22 → It's·a·pretty·basic·little·bot·really!↵
23 ····'';↵
24 ····homepage·=·"https://github.com/mplsbugbounty/signASLBot";↵
25 ····license·=·"";↵
26 ····maintainers·=·with·maintainers;·[·symys·];↵
27 ··};↵
28 }↵
I get:
error: builder for '/nix/store/45ql7689gpqdqj2ylwhzhgi9khi5l7ly-signASLbot-.drv' failed with exit code 1;
...
> Running phase: buildPhase
> Building subPackage .
> main.go:26:5: package signaslbot/errUtils is not in std (/nix/store/6qd8p8gilzgplpk2ni3109m0k71r21s7-go-1.21.5/share/go/src/signaslbot/errUtils)
For full logs, run 'nix-store -l /nix/store/45ql7689gpqdqj2ylwhzhgi9khi5l7ly-signASLbot-.drv'.
| 05:42:06 |