Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

option 'allow-import-from-derivation' is disabled & om ci #41

Open
commandodev opened this issue Jan 8, 2025 · 1 comment
Open

option 'allow-import-from-derivation' is disabled & om ci #41

commandodev opened this issue Jan 8, 2025 · 1 comment

Comments

@commandodev
Copy link

This looks awesome. I just tried to have a play with is and ran into:

❯ nix flake show github:MercuryTechnologies/openai
github:MercuryTechnologies/openai/b53d61c4110ce430769e45ec178f6e487cf05e5d?narHash=sha256-0f/YidfYcCq%2BFHuvM/cGeHWuOUhUxCbKxMxXfQ3evQA%3D
├───devShells
│   ├───aarch64-darwin
│   │   └───default omitted (use '--all-systems' to show)
│   ├───aarch64-linux
│   │   └───default omitted (use '--all-systems' to show)
│   ├───x86_64-darwin
│   │   └───default omitted (use '--all-systems' to show)
│   └───x86_64-linux
error:
       … while calling a functor (an attribute set with a '__functor' attribute)
         at /nix/store/b28k4i7dss8picqr05pix5wv62qc0h8y-source/pkgs/development/haskell-modules/make-package-set.nix:536:31:
          535|         # pkgWithCombinedDeps :: HaskellDerivation
          536|         pkgWithCombinedDeps = self.mkDerivation (genericBuilderArgsModifier genericBuilderArgs);
             |                               ^
          537|

       … while evaluating a branch condition
         at /nix/store/b28k4i7dss8picqr05pix5wv62qc0h8y-source/lib/customisation.nix:148:7:
          147|     in
          148|       if isAttrs result then
             |       ^
          149|         result // {

       (stack trace truncated; use '--show-trace' to show the full, detailed trace)

       error: cannot build '/nix/store/4kazh4h0ysqwbsrrlsdlfji0brm4kcl0-cabal2nix-openai.drv^out' during evaluation because the option 'allow-import-from-derivation' is disabled

It works with --option allow-import-from-derivation true and I know I can change my nix config, but thought I'd flag it here in case you want to add to the README.

@commandodev
Copy link
Author

Also om ci run github:MercuryTechnologies/openai:

# lots and lots of passing stuff
🩺 Running flake check on: .
〕 nix flake check github:MercuryTechnologies/openai️
error:
       … while checking flake output 'overlays'
         at /nix/store/ld4qv3d3pwzfvvzlhrj8s1mbwww13a6d-source/flake.nix:43:7:
           42|     ) // {
           43|       overlays.default = self: super: {
             |       ^
           44|         inherit all-cabal-hashes;

       … while checking the overlay 'overlays.default'
         at /nix/store/ld4qv3d3pwzfvvzlhrj8s1mbwww13a6d-source/flake.nix:43:7:
           42|     ) // {
           43|       overlays.default = self: super: {
             |       ^
           44|         inherit all-cabal-hashes;

       error: overlay does not take an argument named 'final'
Error: Process exited unsuccessfully. exit_code=Some(1)

@commandodev commandodev changed the title option 'allow-import-from-derivation' is disabled option 'allow-import-from-derivation' is disabled & om ci Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant