| 23 Jul 2024 |
| Ezzobir Bezziou joined the room. | 08:20:05 |
| @sethrankada52:matrix.org left the room. | 15:30:02 |
| 24 Jul 2024 |
| R̴̨͕͇͍̞̮̐̅͆̌̀̉̐͋̈́̃̀͒́̎̅̚̚̚͠͝Ĕ̵̡̛͖͖̟̙̫̱͈̘̞̭͍͍͑̌̄͑̓̋̓̀̈̏̈́͊̇͊͆̉͂̏̀̃̚͘͝͝ͅͅD̶̡̢͔̱̖̮͙͉̘̺͓͍̩̮͈͍͗̃̀̏͌͘͜ͅŚ̸̬̭̯̬͙͇͓̬̩̳̤͚͓̤̩̺͉͖̉͛̓̿̎͊̿̆́̐͂̇͌̄̇̓͘ͅͅT̴̞̫̘̝͇͔̟̪̪̦͂̔̎̀̎ͅŎ̷̡̬̹̪͈̭̣͈̭̭͉̦̖̝̘̪͖͔̥̦̘̻̳Ṋ̶̛̫͈̳̘͚̜̔̋͆̅̈́͊̑͊̉̌̈́̾͑̈́̚ͅË̸̡̨̨̛͇̜̖͔͖̻̟̗̠̙͓̘̗̥͉͇̜͑͆͊͑͑̀̓͒͜͝͝ changed their display name from redstone-menace to Redstone. | 10:16:07 |
| sam joined the room. | 18:27:35 |
sam | How do I run the checkPhase of a particular package in nix flake check? | 18:27:50 |
| 25 Jul 2024 |
quapka4 | Hi folks, can I automatically extract attributes from an attribute set? Imagine that I have many things inside let ... in that get build and used in side dev shells. But I also want to be able to build them as a first class citizen. I can inherti <thing>, but doing it for 10 things seems bit awkward. | 09:01:40 |
quapka4 | * Hi folks, can I automatically extract attributes from an attribute set? Imagine that I have many things inside let ... in that get build and used in side dev shells. But I also want to be able to build them as a first class citizen. I can inherit <thing>, but doing it for 10 things seems bit awkward. | 09:01:46 |
quapka4 | So I was thinking to inherit { ... } , but how to then "unwrap" the individual attributes? | 09:05:18 |
quapka4 | Hm, or I could then build it with nix build .#<attribute>.<thingy>. | 09:06:34 |
dramforever | In reply to @quapka4:matrix.org Hi folks, can I automatically extract attributes from an attribute set? Imagine that I have many things inside let ... in that get build and used in side dev shells. But I also want to be able to build them as a first class citizen. I can inherit <thing>, but doing it for 10 things seems bit awkward. do you maybe want rec? https://nix.dev/manual/nix/2.23/language/constructs | 10:02:47 |
| @bumperboat:matrix.org changed their display name from bumperboat (UTC+2) to bumperboat. | 12:47:28 |
Miles Dyson | Hello, I am having this problem:
https://discourse.nixos.org/t/configuring-neovim-how-to-run-non-nix-executables/49631
Can the problem I am having be resolved with a flake? | 18:39:12 |
| 27 Jul 2024 |
| @bumperboat:matrix.org left the room. | 11:58:48 |
| 28 Jul 2024 |
| @s9616726:tu-dresden.de left the room. | 13:19:20 |
| 29 Jul 2024 |
| @rayne:spooky.computer left the room. | 03:39:18 |
| @northben:pixelchef.net left the room. | 13:23:12 |
| @travis-staton:matrix.org joined the room. | 15:04:47 |
| 31 Jul 2024 |
| Karel Kočí joined the room. | 11:55:17 |
| Šimon Brandner joined the room. | 15:52:25 |
Šimon Brandner | Hi, I am trying to setup a flake for my rust program but I am having some issues...
I am using the Burn framework for neural networks and am importing an ONNX pre-trained models in a build.rs script. The problem is that when I run nix build (I am using buildRustPackage) it fails due to not being able to find the .onnx files (No such file or directory). Do I somehow need to tell Nix about the .onnx files for the build to work?
(I am able to compile just fine in a dev shell)
(I hope this is the right room to ask in)
| 15:58:00 |
Šimon Brandner | My messy package.nix:
{
lib,
rustPlatform,
clang,
pkgs ? import <nixpkgs> {},
}: let
cargoToml = builtins.fromTOML (builtins.readFile ../Cargo.toml);
in
rustPlatform.buildRustPackage rec {
inherit (cargoToml.package) version;
pname = cargoToml.package.name;
cargoLock = {
lockFile = ../Cargo.lock;
outputHashes = {
"burn-0.14.0" = "sha256-5ssNI+QvMpEeU7JpK1KVtBpTgXKbaqTUYTBePTL+J24=";
"cubecl-0.1.1" = "sha256-xgwXyHAKSxf4rTF/Svpb61IOvxQUiV9xmOXk5WHDdjY=";
};
};
src = lib.cleanSource ../.;
nativeBuildInputs = with pkgs; [
clang
fontconfig
pkg-config
libxkbcommon
libGL
cmake
wayland
xorg.libXcursor
xorg.libXrandr
xorg.libXi
xorg.libX11
vulkan-headers
vulkan-loader
];
buildInputs = with pkgs; [
clang
fontconfig
pkg-config
libxkbcommon
libGL
cmake
wayland
xorg.libXcursor
xorg.libXrandr
xorg.libXi
xorg.libX11
vulkan-headers
vulkan-loader
];
LIBCLANG_PATH = "${pkgs.libclang.lib}/lib";
LD_LIBRARY_PATH = "${pkgs.lib.makeLibraryPath buildInputs}";
}
| 15:58:27 |
Šimon Brandner | I can see them in /tmp/nix-build-app-0.0.1.drv-0/source/models/ though.... | 16:11:33 |
Šimon Brandner | * I can see them in /tmp/nix-build-app-0.0.1.drv-0/source/models/ though... | 16:11:33 |
Šimon Brandner | Hmm, it might be me being stupid... | 16:16:26 |
Šimon Brandner | In reply to @simon.brandner:envs.net Hmm, it might be me being stupid... Doesn't seem to be the case... | 16:28:27 |
Šimon Brandner | Oh, the problem is actually elsewhere | 16:32:35 |
Šimon Brandner | Still doesn't explain why it fails in nix build and works fine elsewhere | 16:32:56 |
Šimon Brandner | So the problem is that the build.rs thingy is failing to find the file it generated (and I indeed cannot find it in /tmp/nix-build-app-0.0.1.drv-0) | 16:47:55 |
Šimon Brandner | It could be an issue with OUT_DIR not being set correctly... | 16:50:32 |
quapka4 | Hi folks, is it not possible to directly change the sources in $src during any of the phases? Imagine I need to add a generic target to Makefile, so I wanted to do something like:
mySource = ./extraMakeTarget.txt
<somePhase> = ''
cat $mySource >> $src/makefile
'';
But I am getting a Permission Denied error.
| 17:08:40 |