Stream: haskell-flake

Topic: Can’t assign custom library packages in settings


view this post on Zulip Shivaraj B H (Mar 27 2024 at 17:52):

I have a reproducer:

clone this repo: https://github.com/shivaraj-bh/haskell-rust-ffi-template/tree/master

nix develop
just run

Now, update haskell-flake nix flake lock —update-input haskell-flake and it fails with (while trying to enter the devshell):

error: attribute 'hello_rust' missing

Which is a setting : https://github.com/shivaraj-bh/haskell-rust-ffi-template/blob/1038ca8a87aae4e448bbd7ea6e1c41ee4e7acb2d/haskell/default.nix#L6-L8

view this post on Zulip Srid (Mar 27 2024 at 17:56):

I'll take a look later today. Actually, this may be related to the ordering of settings,

https://github.com/srid/haskell-flake/blob/b5bfa21723e55590e92f4896d7bc3ad212cf425a/nix/modules/project/settings/default.nix#L76-L77

view this post on Zulip Srid (Mar 27 2024 at 19:44):

FTR,

• Updated input 'haskell-flake':
    'github:srid/haskell-flake/f9d17c3aa68e65529f424816c8b9346ae602d1de' (2024-02-06)
  → 'github:srid/haskell-flake/5dcb739e9cc4e0edf5267de665fa7a905a543baa' (2024-03-27)

nixci build =>

       error: attribute 'hello_rust' missing

       at /nix/store/lz0159maimglzlpd6gmn0f02047mmih0-source/nix/modules/project/settings/default.nix:75:20:

           74|           in
           75|           lib.pipe super.${name} (
             |                    ^
           76|             # TODO: Do we care about the *order* of overrides?
Error: devour-flake failed to run (exited: 1)

Last updated: Nov 21 2024 at 08:50 UTC