!SgYlXivkogarTVcnZO:nixos.org

Nix Flakes

888 Members
178 Servers

Load older messages


SenderMessageTime
26 Oct 2021
@blaggacao:matrix.orgDavid Arnold (blaggacao)* `/etc/nix/netrc` was it? And then `netrc-file = /etc/nix/netrc` (in the nix config)19:17:10
@colemickens:matrix.orgcolemickens ๐Ÿณ๏ธโ€๐ŸŒˆ You do nix build --profile :/ 23:02:05
@colemickens:matrix.orgcolemickens ๐Ÿณ๏ธโ€๐ŸŒˆ cc: Las ^ 23:02:11
@colemickens:matrix.orgcolemickens ๐Ÿณ๏ธโ€๐ŸŒˆ approximately: sudo nix "${nixargs[@]}" build --no-link --profile /nix/var/nix/profiles/system "${out}" 23:02:52
@Las:matrix.orgLas Well, it's better than nothing, thanks colemickens ๐Ÿณ๏ธโ€๐ŸŒˆ ! 23:06:32
@Las:matrix.orgLasI made https://github.com/NixOS/nix/issues/543623:11:29
@figsoda:matrix.orgfigsoda
In reply to @tomberek:matrix.org
nix profile remove '.*' ; nix profile install ? :)
a useless tip: using .+ instead of '.*' does the same thing and it's shorter
23:29:04
27 Oct 2021
@sudoreboot:matrix.orgHrafn BlรณรฐbรณkWhat is the URI syntax for gitlab subgroups/subprojects? Example: I want to try out a flake with this convoluted path: https://gitlab.com/veloren/dev/veloren/-/tree/yusdacra/chore/nix06:48:48
@balsoft:balsoft.rubalsoft I think git+https is the best you can do :/ 08:12:01
@colemickens:matrix.orgcolemickens ๐Ÿณ๏ธโ€๐ŸŒˆ Las: I'm not sure I understood your issue. In the example I gave ${out} was some arbitrary store path (which happened to be a nixos toplevel) 19:33:46
@Las:matrix.orgLas
In reply to @colemickens:matrix.org
Las: I'm not sure I understood your issue. In the example I gave ${out} was some arbitrary store path (which happened to be a nixos toplevel)
Yes, you're right.
19:34:16
@Las:matrix.orgLasI thought that that didn't work, since there is nothing to build.19:34:37
@Las:matrix.orgLasit's not intuitively clear from the name.19:34:44
@enzime:nixos.devEnzime
In reply to @sudoreboot:matrix.org
What is the URI syntax for gitlab subgroups/subprojects? Example: I want to try out a flake with this convoluted path: https://gitlab.com/veloren/dev/veloren/-/tree/yusdacra/chore/nix
as far as I understand, that's just the name of the branch so when you specify the flake input you just need to specify ref = "yusdacra/chore/nix";
23:48:15
@balsoft:balsoft.rubalsoft
In reply to @enzime:nixos.dev
as far as I understand, that's just the name of the branch so when you specify the flake input you just need to specify ref = "yusdacra/chore/nix";
I think the problem is veloren/dev/veloren
23:57:22
28 Oct 2021
@enzime:nixos.devEnzime inputs.veloren.url = "git+https://gitlab.com/veloren/dev/veloren.git?ref=yusdacra/chore/nix"; works for me :) 00:10:13
@balsoft:balsoft.rubalsoftWell yeah00:12:51
@balsoft:balsoft.rubalsoftBut that will be not very efficient00:12:59
@balsoft:balsoft.rubalsoft gitlab:foo/bar is better 00:13:04
@enzime:nixos.devEnzime
In reply to @balsoft:balsoft.ru
But that will be not very efficient
oh why's that?
00:14:11
@balsoft:balsoft.rubalsoft gitlab: just fetches a pre-made tarball 00:14:53
@balsoft:balsoft.rubalsoft And the git fetcher is meh 00:15:03
@balsoft:balsoft.rubalsoft There are some details in either this room or the #nix-dev:nixos.org 00:15:21
@balsoft:balsoft.rubalsoftI don't remember exactly, sorry :D00:15:27
@enzime:nixos.devEnzime
$ nix flake check "gitlab:veloren/dev/veloren?ref=yusdacra/chore/nix"
error: URL 'gitlab:veloren/dev/veloren?ref=yusdacra/chore/nix' contains multiple branch/tag names
00:30:38
@enzime:nixos.devEnzime yeah definitely looks like gitlab: and github: are built with the fundamental assumption that gitlab:A/B B can't contain slashes 00:31:13
@bew:matrix.orgbew yeah that's because the flake ref syntax is git{hub,lab}:org/repo/branch?options 00:57:42
@tomberek:matrix.orgtomberekgitlab allows for sub-organizations, i'm not dealing with any right now, but this assumption may not work in those cases...... can we just tweak the parsing or spec of the flake ref syntax?00:59:30
@bew:matrix.orgbew
In reply to @balsoft:balsoft.ru
I think git+https is the best you can do :/
as he said, that's the only way to use a repository at an arbitrary url
01:00:52
@bew:matrix.orgbew
In reply to @balsoft:balsoft.ru
I think git+https is the best you can do :/
* as he said, that's the only way I know to use a repository at an arbitrary url
01:01:12

Show newer messages


Back to Room ListRoom Version: 6