mac-app-util icon indicating copy to clipboard operation
mac-app-util copied to clipboard

gitlab Common Lisp giving 404 error. Please try to build without nix cache to see error.

Open DemyCode opened this issue 1 month ago • 9 comments

sudo nix run nix-darwin/master#darwin-rebuild --extra-experimental-features 'flakes nix-command' --print-build-logs --verbose -- switch --print-build-logs --verbose --flake path:. Please try to build without nix cache to see error.

  /nix/store/pmzp0rzsv90fz5ik3s6w6snfnbaq4pmk-darwin-system-25.11.c3c8c9f.drv
building '/nix/store/mp1mr9wrac44c2xhiy833hzyrs6pq1pj-home-configuration-reference-manpage-fish-completions.drv'...
building '/nix/store/4mnqvlqxm0zc2pkg591zfgdjswa56qig-source.drv'...
source> 
source> trying https://gitlab.common-lisp.net/api/v4/projects/iterate%2Fiterate/repository/archive.tar.gz?sha=26cf129a03b45d6dd7d2a659622244d20a9ab6f5
source>   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
source>                                  Dload  Upload   Total   Spent    Left  Speed
source>   0     0    0     0    0     0      0      0 --:--:--  0:00:06 --:--:--     0
source> curl: (22) The requested URL returned error: 404
source> error: cannot download source from any mirror
building '/nix/store/fl90fw7khf572hzcqn9gmw74k1mja2s9-source.drv'...
error: Cannot build '/nix/store/4mnqvlqxm0zc2pkg591zfgdjswa56qig-source.drv'.
       Reason: builder failed with exit code 1.
       Output paths:
         /nix/store/lfal5zsxwmv0kqwh6labhw3f35h7d82p-source
       Last 7 log lines:
       >
       > trying https://gitlab.common-lisp.net/api/v4/projects/iterate%2Fiterate/repository/archive.tar.gz?sha=26cf129a03b45d6dd7d2a659622244d20a9ab6f5
       >   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
       >                                  Dload  Upload   Total   Spent    Left  Speed
       >   0     0    0     0    0     0      0      0 --:--:--  0:00:06 --:--:--     0
       > curl: (22) The requested URL returned error: 404
       > error: cannot download source from any mirror
       For full logs, run:
         nix-store -l /nix/store/4mnqvlqxm0zc2pkg591zfgdjswa56qig-source.drv
error: Cannot build '/nix/store/bvgxpd9i3jawal770739jng3yl4by13h-system-iterate.drv'.
       Reason: 1 dependency failed.
       Output paths:
         /nix/store/cnks70y505dlvccjzjgs06jblc4d8msi-system-iterate
error: Cannot build '/nix/store/pzw9lw6mwr8q9avs63q0sfhp4n5fhvv5-system-iterate.drv'.
       Reason: 1 dependency failed.
       Output paths:
         /nix/store/ddq87m0x8vc9l2c7lzpv3j54g6d7s522-system-iterate
error: Cannot build '/nix/store/xn10vzdf2smfj7cnw4jfy0gcjp59b2xn-sbcl-2.4.10.drv'.
       Reason: 1 dependency failed.
       Output paths:
         /nix/store/m89301brb2p9d87ijv2jy5dm9pw2857a-sbcl-2.4.10
error: Cannot build '/nix/store/mcn95qg6ncd2n1hxsx0byihp7d1kpsbh-mac-app-util.drv'.
       Reason: 1 dependency failed.
       Output paths:
         /nix/store/w2mg0n08s44z5lrqh8jb8w5sl13ljwhs-mac-app-util
error: Cannot build '/nix/store/pmzp0rzsv90fz5ik3s6w6snfnbaq4pmk-darwin-system-25.11.c3c8c9f.drv'.
       Reason: 1 dependency failed.
       Output paths:
         /nix/store/ggrwv5rzfl12xb64c692fa1avm2yhqwa-darwin-system-25.11.c3c8c9f

DemyCode avatar Nov 03 '25 15:11 DemyCode

The fix is to just delete Mac utils for now ? 😢

MehdiBekhtaoui avatar Nov 04 '25 09:11 MehdiBekhtaoui

The fix is to just delete Mac utils for now ? 😢

It builds when not overriding inputs like nixpkgs. So the fix for now would be to not override nixpkgs as long as the upstream isn't fixed

peanutbother avatar Nov 04 '25 10:11 peanutbother

It builds when not overriding inputs like nixpkgs.

No, it did not help. I keep getting the error with and without nixpkgs override.

octet-stream avatar Nov 05 '25 18:11 octet-stream

% nix build "github:hraban/mac-app-util"
error: Cannot build '/nix/store/4mnqvlqxm0zc2pkg591zfgdjswa56qig-source.drv'.
       Reason: builder failed with exit code 1.
       Output paths:
         /nix/store/lfal5zsxwmv0kqwh6labhw3f35h7d82p-source
       Last 7 log lines:
       >
       > trying https://gitlab.common-lisp.net/api/v4/projects/iterate%2Fiterate/repository/archive.tar.gz?sha=26cf129a03b45d6dd7d2a659622244d20a9ab6f5
       >   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
       >                                  Dload  Upload   Total   Spent    Left  Speed
       >   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
       > curl: (22) The requested URL returned error: 404
       > error: cannot download source from any mirror
       For full logs, run:
         nix log /nix/store/4mnqvlqxm0zc2pkg591zfgdjswa56qig-source.drv
error: Cannot build '/nix/store/bvgxpd9i3jawal770739jng3yl4by13h-system-iterate.drv'.
       Reason: 1 dependency failed.
       Output paths:
         /nix/store/cnks70y505dlvccjzjgs06jblc4d8msi-system-iterate
error: Cannot build '/nix/store/pzw9lw6mwr8q9avs63q0sfhp4n5fhvv5-system-iterate.drv'.
       Reason: 1 dependency failed.
       Output paths:
         /nix/store/ddq87m0x8vc9l2c7lzpv3j54g6d7s522-system-iterate
error: Cannot build '/nix/store/xn10vzdf2smfj7cnw4jfy0gcjp59b2xn-sbcl-2.4.10.drv'.
       Reason: 1 dependency failed.
       Output paths:
         /nix/store/m89301brb2p9d87ijv2jy5dm9pw2857a-sbcl-2.4.10
error: Cannot build '/nix/store/mcn95qg6ncd2n1hxsx0byihp7d1kpsbh-mac-app-util.drv'.
       Reason: 1 dependency failed.
       Output paths:
         /nix/store/w2mg0n08s44z5lrqh8jb8w5sl13ljwhs-mac-app-util

So nope, still broken without the nixpkgs override. It does build with a84b0a7c509bdbaafbe6fe6e947bdaa98acafb99 though so pinning to that rev might be a temporary workaround.

mac-app-util = {
  url = "github:hraban/mac-app-util";
  inputs.nixpkgs.url = "github:NixOS/nixpkgs?rev=a84b0a7c509bdbaafbe6fe6e947bdaa98acafb99";
};

Futarimiti avatar Nov 06 '25 09:11 Futarimiti

It does build with a84b0a7c509bdbaafbe6fe6e947bdaa98acafb99 though so pinning to that rev might be a temporary workaround.

Nope, that didn't help either. Have you tried without cache?

octet-stream avatar Nov 06 '25 09:11 octet-stream

It does build with a84b0a7c509bdbaafbe6fe6e947bdaa98acafb99 though so pinning to that rev might be a temporary workaround.

Nope, that didn't help either. Have you tried without cache?

If you were saying sudo darwin-rebuild switch --flake . --option substitute false then that works for me still; or did you mean something else?

Futarimiti avatar Nov 06 '25 12:11 Futarimiti

Hi there fellas. I've managed to update lisp deps used in inputs of mac-app-util. You can fix it like that, just for now:

mac-app-util = {
  url = "github:hraban/mac-app-util";
  inputs.cl-nix-lite.url = "github:r4v3n6101/cl-nix-lite/url-fix";
};

r4v3n6101 avatar Nov 07 '25 17:11 r4v3n6101

It builds when not overriding inputs like nixpkgs. So the fix for now would be to not override nixpkgs as long as the upstream isn't fixed

What does it mean ? What does it look like in a flake for example ? (I'm fairly new to Nix)

thomas-maurice avatar Nov 14 '25 08:11 thomas-maurice

What does it mean ? What does it look like in a flake for example ? (I'm fairly new to Nix)

In that case it means you can override dependencies of other flakes like this:

mac-app-util = {
  url = "github:hraban/mac-app-util";
  inputs.nixpkgs.follows = "nixpkgs"; # <= This means mac-app-util will reuse nixpkgs from your flake
}

or as it shown in this comment – you can bring flake from github and use it as the input to one of your flake's inputs.

Here you can find more info: https://nix.dev/manual/nix/2.24/command-ref/new-cli/nix3-flake#flake-inputs

octet-stream avatar Nov 14 '25 13:11 octet-stream