!FBuJyWXTGcGtHTPphC:nixos.org

Nix Rust

596 Members
Rust134 Servers

Load older messages


SenderMessageTime
1 Jul 2025
@emilazy:matrix.orgemily and we'll also need to do a merge into staging-next and staging when we land 17:33:31
@emilazy:matrix.orgemily as in, make it a nop in staging 17:33:51
@emilazy:matrix.orgemilysorry for not catching that originally17:34:00
@emilazy:matrix.orgemily

btw, you may want to collapse newlines for the

  cargoHash = "foo";

  useFetchCargoVendor = true;

  otherThing = 123;

case

17:34:37
@emilazy:matrix.orgemily(not sure if we have any in tree or not though)17:34:40
@emilazy:matrix.orgemily (and actually I guess nixfmt might collapse those already) 17:34:47
@tomasajt:matrix.orgTomayes17:34:52
@tomasajt:matrix.orgToma* yes it does17:35:06
@tomasajt:matrix.orgTomaOkay, I'll work on the make-NOOP PR then17:35:53
@tomasajt:matrix.orgTomahttps://github.com/NixOS/nixpkgs/pull/42156317:41:39
@tomasajt:matrix.orgTomathis minimal change should be fine I think17:42:13
@tomasajt:matrix.orgTomaOh it has an eval error, will fix it in a minute17:45:43
@tomasajt:matrix.orgToma* Oh it has an eval error, will fix it in a minute Edit: Done!17:47:57
@dynamicgoose:matrix.orgDynamicGoose joined the room.20:31:06
@dynamicgoose:matrix.orgDynamicGoose set a profile picture.20:35:21
2 Jul 2025
@michael.zeagler:matrix.org@michael.zeagler:matrix.org left the room.02:12:23
@mtheil:scs.ems.hostMarkus Theil joined the room.13:30:16
3 Jul 2025
@robert:scs.ems.hostRobert Rose - 🌴 04.07 changed their display name from Robert Rose to Robert Rose - 🌴 04.07.20:37:07
@tomasajt:matrix.orgToma

I would like to revive some conversation around https://github.com/NixOS/nixpkgs/pull/387337

Currently the implementation creates a new subdirectory for each unique source that can be found in the lockfile

Here's an example of how the final directory layout might look like:

$ ls -A result/
.cargo  source-git-0  source-git-1  source-git-2  source-registry-0  Cargo.lock

$ cat result/.cargo/config.toml

[source._vendored-source-registry-0]
directory = "@vendor@/source-registry-0"

[source.crates-io]
replace-with = "_vendored-source-registry-0"

[source._vendored-source-git-0]
directory = "@vendor@/source-git-0"

[source._original-source-git-0]
git = "https://github.com/biomejs/biome"
rev = "2648fa4201be4afd26f44eca1a4e77aac0a67272"
replace-with = "_vendored-source-git-0"

[source._vendored-source-git-1]
directory = "@vendor@/source-git-1"

[source._original-source-git-1]
git = "https://github.com/lionel-/tower-lsp"
branch = "bugfix/patches"
replace-with = "_vendored-source-git-1"

[source._vendored-source-git-2]
directory = "@vendor@/source-git-2"

[source._original-source-git-2]
git = "https://github.com/r-lib/tree-sitter-r"
rev = "a0d3e3307489c3ca54da8c7b5b4e0c5f5fd6953a"
replace-with = "_vendored-source-git-2"
22:41:21
@tomasajt:matrix.orgTomaI'm also wondering whether we want to support fetching from other registries in the future. This would require some ret-con on the layout of the FOD itself, but it shouldn't be too bad.22:42:38
@tomasajt:matrix.orgToma *

I would like to revive some conversation around https://github.com/NixOS/nixpkgs/pull/387337

Currently PR's implementation creates a new subdirectory for each unique source that can be found in the lockfile

Here's an example of how the final directory layout might look like:

$ ls -A result/
.cargo  source-git-0  source-git-1  source-git-2  source-registry-0  Cargo.lock

$ cat result/.cargo/config.toml

[source._vendored-source-registry-0]
directory = "@vendor@/source-registry-0"

[source.crates-io]
replace-with = "_vendored-source-registry-0"

[source._vendored-source-git-0]
directory = "@vendor@/source-git-0"

[source._original-source-git-0]
git = "https://github.com/biomejs/biome"
rev = "2648fa4201be4afd26f44eca1a4e77aac0a67272"
replace-with = "_vendored-source-git-0"

[source._vendored-source-git-1]
directory = "@vendor@/source-git-1"

[source._original-source-git-1]
git = "https://github.com/lionel-/tower-lsp"
branch = "bugfix/patches"
replace-with = "_vendored-source-git-1"

[source._vendored-source-git-2]
directory = "@vendor@/source-git-2"

[source._original-source-git-2]
git = "https://github.com/r-lib/tree-sitter-r"
rev = "a0d3e3307489c3ca54da8c7b5b4e0c5f5fd6953a"
replace-with = "_vendored-source-git-2"
22:43:03
@tomasajt:matrix.orgToma *

I would like to revive some conversation around https://github.com/NixOS/nixpkgs/pull/387337

Currently the PR's implementation creates a new subdirectory for each unique source that can be found in the lockfile

Here's an example of how the final directory layout might look like:

$ ls -A result/
.cargo  source-git-0  source-git-1  source-git-2  source-registry-0  Cargo.lock

$ cat result/.cargo/config.toml

[source._vendored-source-registry-0]
directory = "@vendor@/source-registry-0"

[source.crates-io]
replace-with = "_vendored-source-registry-0"

[source._vendored-source-git-0]
directory = "@vendor@/source-git-0"

[source._original-source-git-0]
git = "https://github.com/biomejs/biome"
rev = "2648fa4201be4afd26f44eca1a4e77aac0a67272"
replace-with = "_vendored-source-git-0"

[source._vendored-source-git-1]
directory = "@vendor@/source-git-1"

[source._original-source-git-1]
git = "https://github.com/lionel-/tower-lsp"
branch = "bugfix/patches"
replace-with = "_vendored-source-git-1"

[source._vendored-source-git-2]
directory = "@vendor@/source-git-2"

[source._original-source-git-2]
git = "https://github.com/r-lib/tree-sitter-r"
rev = "a0d3e3307489c3ca54da8c7b5b4e0c5f5fd6953a"
replace-with = "_vendored-source-git-2"
22:43:12
@emilazy:matrix.orgemilydoes anything in practice use multiple registries?22:45:47
@tomasajt:matrix.orgTomaProbably people using some internal packages, idk22:46:35
@tomasajt:matrix.orgTomaAlso even if they were to use multiple registries, in most cases there wouldn't be any clash, so we could just put everything into the tarballs/ directory of the FOD.22:48:37
@tomasajt:matrix.orgTomaBtw I have https://github.com/NixOS/nixpkgs/pull/399775 which already has a POC implementation for using multiple registries (though it doesn't put everything into tarballs/)22:50:23
4 Jul 2025
@qaspr:matrix.orgJacoMalan1 joined the room.13:48:28
5 Jul 2025
@pblue3:matrix.orgPBlue3 joined the room.18:02:54
@kwiuu:matrix.orgkwiuu joined the room.20:42:27
6 Jul 2025
@qaspr:matrix.orgJacoMalan1 changed their display name from jacom to JacoMalan1.12:16:13

Show newer messages


Back to Room ListRoom Version: 6