!SgYlXivkogarTVcnZO:nixos.org

Nix Flakes

861 Members
177 Servers

Load older messages


SenderMessageTime
28 Dec 2024
@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
@laauurraa:matrix.orglaauurraawhoops01:04:53
@laauurraa:matrix.orglaauurraaIt works now01:04:55
@laauurraa:matrix.orglaauurraaThanks so much! <301:05:00
@elikoga:matrix.orgelikoga changed their display name from elikoga (@38c3 📞488{0,1}) to elikoga (@38c3 📞488{0,1,9}).11:03:22
30 Dec 2024
@tommy:datenkollektiv.netTommy changed their display name from Tommy (3841) to Tommy.19:25:49
31 Dec 2024
@tilpner:tx0.cotilpner changed their display name from tilpner (38c3 3209) to tilpner.10:55:02
@phaer:matrix.org@phaer:matrix.org changed their display name from phaer (8650 at 38c3) to phaer.19:23:50
@tanja:catgirl.cloudTanja (she/her) changed their display name from Tanja (she/her) [DECT 6929] to Tanja (she/her).20:59:12
1 Jan 2025
@mjolnir:nixos.orgmjolnirchanged room power levels.14:26:30
@pinpox:matrix.orgpinpox changed their display name from pinpox [DECT: 7170] to pinpox.18:20:06
@jopejoe1:matrix.orgjopejoe1 (4094@39c3) changed their display name from jopejoe1 [4094] to jopejoe1.23:29:23
2 Jan 2025
@error_pro:matrix.orgerror_pro joined the room.10:11:26
@hashphoenix:matrix.orgOluwapelumi Adeosun joined the room.10:14:15
@urbas:matrix.orgMatej Urbas changed their display name from urbas to Matej Urbas.17:38:25
3 Jan 2025
@elikoga:matrix.orgelikoga changed their display name from elikoga (@38c3 📞488{0,1,9}) to elikoga.10:28:16
@bryan.bennett:matrix.orgBryan

...I did not see this reply at all last month.

I'll be coming back to this problem soon. I think we just got around it with import, but I would have to go back and check.'

18:12:20
@bryan.bennett:matrix.orgBryan *

...I did not see this reply at all last month.

I'll be coming back to this problem soon. I think we just got around it with import, but I would have to go back and check.

18:12:23
5 Jan 2025
@5sqrgsrdwk:matrix.org5sqrgsrdwk joined the room.11:52:43
@5sqrgsrdwk:matrix.org5sqrgsrdwkHey, y'all! I'm trying to allow internet access from a flake build. Specifically from pnpm, but I keep getting "UNABLE_TO_GET_ISSUER_CERT_LOCALLY" and "failed, reason: unable to get local issuer certificate". All of the documentation I can find recommends "__noChroot = true," and I've tried " __impure = true;" in the derivation, too. As it stands, my nix.conf has "experimental-features = nix-command flakes impure-derivations ca-derivations," and I've tried "nix build ... --impure" and "--option sandbox relaxed" and "--option sandbox false." If it matters, I'm on an M2 Mac. Let me know if I should move this somewhere else. Does anyone have any ideas?12:18:44

Show newer messages


Back to Room ListRoom Version: 6