| 27 Dec 2024 |
f44 | Hi! I try to load a flake into the nix repl and encounter the following error: nix-repl> :lf .
error:
… while updating the lock file of flake 'git+file:///home/user/dev/nix-config?dir=config&ref=refs/heads/main&rev=f4283050582a3d34aee1f91780a3a64d5ab46ddb'
error: flake 'git+file:///home/user/dev/nix-config?dir=config' requires lock file changes but they're not allowed due to '--no-update-lock-file
This worked a few weeks back without any issues. Any idea what's causing this? I'm not using this flag anywhere. | 15:33:21 |
f44 | Seems like this is caused by a local flake I've added and imported recently. When I remove it, the problem vanishes. I can work with that, ignore me :) | 15:58:43 |
| 28 Dec 2024 |
| t2elsewhere joined the room. | 15:36:49 |
| brouny joined the room. | 15:40:30 |
laauurraa | Hi! How do I make my flake executable so it can run on another machine? | 17:15:54 |
laauurraa | I have a flake that I can use, it works on my machine, but now I want to be able to do
$ nix run github:<my-github-user>:<my-repo>
| 17:16:39 |
laauurraa | {
description = "Remarks ..."
outputs = { self, nixpkgs, flake-utils, poetry2nix }:
flake-utils.lib.eachDefaultSystem (system:
let
# ...
# .......
in {
packages = {
default = remarksBin;
remarks = remarksBin;
};
apps.default = {
type = "app";
program = "${remarksBin}/bin/remarks";
};
devShells.default = environment;
});
}
| 17:18:22 |
laauurraa | * {
description = "Remarks ..."
outputs = { self, nixpkgs, flake-utils, poetry2nix }:
flake-utils.lib.eachDefaultSystem (system:
let
# ...
# .......
remarksBin = mkPoetryApplication {
# ...
};
in {
packages = {
default = remarksBin;
remarks = remarksBin;
};
apps.default = {
type = "app";
program = "${remarksBin}/bin/remarks";
};
devShells.default = environment;
});
}
| 17:19:23 |
laauurraa | But now I'm getting an error
$ nix run github:Azeirah/remarks
error: unable to execute '/nix/store/sf1dlqvx5lqr2sg5jmvcwlrpa6bg9hrk-python3.10-remarks-0.3.10/bin/remarks': No such file or directory
Whereas, if I run
$ nix run #.
In the git repo itself, it does work
| 17:22:26 |
| @ronnypfannschmidt:matrix.org left the room. | 17:57:41 |
samasaur | uhh when you run it locally are you running nix run .# or nix run #. | 18:20:13 |
samasaur | actually nvm it shouldn't matter | 18:21:23 |
samasaur | do you have any local changes? I can't get anything to run with or without a local clone | 18:21:52 |
samasaur | and it appears to be because your package doesn't produce a bin output | 18:22:07 |
| 29 Dec 2024 |
laauurraa | OH, it was totally the local change | 01:04:33 |
laauurraa | The part that generates the bin was missing in the pyproject.toml on the github repository, but I did have it locally | 01:04:52 |
laauurraa | whoops | 01:04:53 |
laauurraa | It works now | 01:04:55 |
laauurraa | Thanks so much! <3 | 01:05:00 |
| elikoga changed their display name from elikoga (@38c3 📞488{0,1}) to elikoga (@38c3 📞488{0,1,9}). | 11:03:22 |
| 30 Dec 2024 |
| Tommy changed their display name from Tommy (3841) to Tommy. | 19:25:49 |
| 31 Dec 2024 |
| tilpner changed their display name from tilpner (38c3 3209) to tilpner. | 10:55:02 |
| phaer changed their display name from phaer (8650 at 38c3) to phaer. | 19:23:50 |
| Tanja (she/her) changed their display name from Tanja (she/her) [DECT 6929] to Tanja (she/her). | 20:59:12 |
| 1 Jan 2025 |
| NixOS Moderation Botchanged room power levels. | 14:26:30 |
| pinpox changed their display name from pinpox [DECT: 7170] to pinpox. | 18:20:06 |
| jopejoe1 (4094@39c3) changed their display name from jopejoe1 [4094] to jopejoe1. | 23:29:23 |
| 2 Jan 2025 |
| error_pro joined the room. | 10:11:26 |
| Oluwapelumi Adeosun joined the room. | 10:14:15 |
| Matej Urbas changed their display name from urbas to Matej Urbas. | 17:38:25 |