!SgYlXivkogarTVcnZO:nixos.org

Nix Flakes

869 Members
180 Servers

Load older messages


SenderMessageTime
26 Dec 2024
@10leej:matrix.org@10leej:matrix.org joined the room.01:41:09
@10leej:matrix.org@10leej:matrix.org left the room.01:41:56
@elikoga:matrix.orgelikoga changed their display name from elikoga to elikoga (@38c3 📞448{0,1}.15:21:55
@elikoga:matrix.orgelikoga changed their display name from elikoga (@38c3 📞448{0,1} to elikoga (@38c3 📞448{0,1}).15:26:10
@elikoga:matrix.orgelikoga changed their display name from elikoga (@38c3 📞448{0,1}) to elikoga (@38c3 📞488{0,1}).15:26:51
@tommy:datenkollektiv.netTommy changed their display name from Tommy to Tommy (3841).16:06:44
@phaer:matrix.orgphaer changed their display name from phaer to phaer (8650 at 38c3).17:41:37
@lorenzleutgeb:matrix.orgLorenz Leutgeb changed their display name from Lorenz Leutgeb to Lorenz Leutgeb (📞6343).19:33:13
@lorenzleutgeb:matrix.orgLorenz Leutgeb changed their display name from Lorenz Leutgeb (📞6343) to Lorenz Leutgeb 📞6343.19:36:26
@pierre:eng42.devpierre joined the room.20:16:15
27 Dec 2024
@tilpner:tx0.cotilpner changed their display name from tilpner to tilpner (38c3 3209).09:40:59
@dimitarnestorov:matrix.orgDimitar set a profile picture.11:41:24
@dimitarnestorov:matrix.orgDimitar changed their display name from dimitarnestorov to Dimitar.11:42:16
@pinpox:matrix.orgpinpox changed their display name from pinpox to pinpox [DECT: 7170].15:22:52
@f44:matrix.orgf44

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:matrix.orgf44Seems 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:matrix.orgt2elsewhere joined the room.15:36:49
@brouny:matrix.orgbrouny joined the room.15:40:30
@laauurraa:matrix.orglaauurraaHi! How do I make my flake executable so it can run on another machine?17:15:54
@laauurraa:matrix.orglaauurraa

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:matrix.orglaauurraa
{
  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:matrix.orglaauurraa *
{
  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:matrix.orglaauurraa

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@ronnypfannschmidt:matrix.org left the room.17:57:41
@samasaur:matrix.orgsamasaur uhh when you run it locally are you running nix run .# or nix run #. 18:20:13
@samasaur:matrix.orgsamasauractually nvm it shouldn't matter18:21:23
@samasaur:matrix.orgsamasaurdo you have any local changes? I can't get anything to run with or without a local clone18:21:52
@samasaur:matrix.orgsamasaur and it appears to be because your package doesn't produce a bin output 18:22:07
29 Dec 2024
@laauurraa:matrix.orglaauurraaOH, it was totally the local change01:04:33
@laauurraa:matrix.orglaauurraaThe part that generates the bin was missing in the pyproject.toml on the github repository, but I did have it locally01:04:52

Show newer messages


Back to Room ListRoom Version: 6