multiple packages for multiple executables? #378
-
My understanding of the example For a project with only one
I believe How can I make packages for both? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
Why?Flake outputs’ haskell-flake/nix/modules/project/outputs.nix Lines 93 to 109 in 7252929 All the other haskell-flake/nix/modules/project/outputs.nix Lines 123 to 126 in 7252929 @srid any reason why the |
Beta Was this translation helpful? Give feedback.
-
This repo has no Haskell packages. Did you mean to link to In any case, for the use-case mentioned above - I'd normally expect the main cabal package to have both executables, i.e., |
Beta Was this translation helpful? Give feedback.
-
haskell.nix implements a derivation per component but is slow to evaluate unless workarounds are applied. Those workarounds could perhaps be facilitated by a flake-parts module, but I am not sufficiently familiar with that Haskell integration, so I was unable to validate my mediocre attempt to package it for flake-parts against a baseline UX. I'm happy to use a conceptually simpler integration like this one instead, even if the build is less fine grained. |
Beta Was this translation helpful? Give feedback.
nix build .#foo
works,nix build .#bar
should fail. But bothnix run .#foo
andnix run .#bar
should run.Why?
Flake outputs’
packages
exported byhaskell-flake
comes frompackage
output of the function (See 1 and 2):haskell-flake/nix/modules/project/outputs.nix
Lines 93 to 109 in 7252929