!jngDrdMgndWibPCYsR:nixos.org

Nix PHP

77 Members
A room for PHP developers running on Nix22 Servers

Load older messages


SenderMessageTime
21 Nov 2023
@drupol:matrix.orgPolOf course!09:00:23
@drupol:matrix.orgPol Send me your shell.nix 09:00:31
@drupol:matrix.orgPolI'll do it quickly09:00:35
@rikudou:lemmings.worldrikudou@lemmings.worldDownload shell.nix09:00:58
@drupol:matrix.orgPoldoing it.09:02:15
@rikudou:lemmings.worldrikudou@lemmings.worldThanks!09:02:23
@drupol:matrix.orgPolWithout testing it, I'm pretty sure this should work: https://gist.github.com/drupol/8e5eb2f7cb344fe7009b72d97d1bd90f09:08:48
@drupol:matrix.orgPolimage.png
Download image.png
09:10:23
@drupol:matrix.orgPolYep, seems to work09:10:29
@drupol:matrix.orgPolNow, going to make it simpler.09:10:36
@rikudou:lemmings.worldrikudou@lemmings.world I get this error instead: error: getting status of '/nix/store/1wlb2g44ajwr6n14apkigayzqy227ylk-source/flake.nix': No such file or directory 09:11:02
@rikudou:lemmings.worldrikudou@lemmings.world Where does this come from on line 5? nixpkgs_php7429 09:12:53
@drupol:matrix.orgPolIt works here09:14:38
@drupol:matrix.orgPolMake sure you have the latest version of the file09:14:45
@drupol:matrix.orgPol
In reply to @rikudou:lemmings.world
Where does this come from on line 5? nixpkgs_php7429
I made it up myself
09:14:56
@drupol:matrix.orgPolIt could be any name actually09:15:12
@drupol:matrix.orgPol Once you are in the directory where the flake it, just do: nix develop 09:15:35
@drupol:matrix.orgPol And you will enter the default development shell 09:15:45
@rikudou:lemmings.worldrikudou@lemmings.world Yeah, I understand that now, I had some version which had inputs.php7429 but nixpkgs_php7429 in the outputs, that confused me 09:15:51
@drupol:matrix.orgPolyeah my bad09:16:01
@rikudou:lemmings.worldrikudou@lemmings.worldI still get the same error09:16:21
@drupol:matrix.orgPolindeed.09:17:08
@drupol:matrix.orgPolFixing it.09:17:10
@rikudou:lemmings.worldrikudou@lemmings.worldHm, but the same file works in a different dir. How's that possible?09:17:27
@rikudou:lemmings.worldrikudou@lemmings.worldThe full thing is: warning: Git tree '/home/username/some-project' is dirty error: getting status of '/nix/store/1wlb2g44ajwr6n14apkigayzqy227ylk-source/flake.nix': No such file or directory09:17:59
@rikudou:lemmings.worldrikudou@lemmings.world
In reply to @rikudou:lemmings.world
Hm, but the same file works in a different dir. How's that possible?
Well, not works, but it fails on infinite recursion instead
09:18:27
@drupol:matrix.orgPolFixed09:18:34
@drupol:matrix.orgPolhttps://gist.github.com/drupol/8e5eb2f7cb344fe7009b72d97d1bd90f09:18:35
@rikudou:lemmings.worldrikudou@lemmings.worldIt works in an empty directory, but not in my git directory (which indeed has uncommitted changes)09:20:27
@drupol:matrix.orgPol You must do git add flake.nix 09:22:00

Show newer messages


Back to Room ListRoom Version: 6