mirror of
https://github.com/simplex-chat/haskell.nix.git
synced 2026-06-03 09:17:32 +00:00
f056dd34cd
See https://github.com/input-output-hk/nix-tools/pull/101 We should look up hsPkgs.${pkg-name}.components.exe.${component-name} instead of including the package as a dependency. Adding `hsPkgs.${pkg-name}` a tool it is not clear which executable in the package `haskell.nix` should choose. Haskell.nix did not deal with this well and in fact it could lead to `nix-shell` crashing. For instance using `shellFor` to make a shell for building `haskell-language-server` with `cabal build` crashed as a dependency on `ghcide` the executable (by the `ghcide-bench` executable) caused infinite recursion. Allowing `ghcide-bench` to correctly depend just on `components.exes.ghcide` fixes this. This PR also includes: * Updated materialized files built with the new nix-tools and latest index-state * Small update to GHCJS (pins happy) to fix issue that showed up when the materialization was updated * A fix for the infinite recursion issue when updating materialized files (by adding ghc-boot-packages-unchecked). * Performance fix for shellFor (checks just the names of component derivations when filtering).
44 lines
1.2 KiB
Plaintext
44 lines
1.2 KiB
Plaintext
cabal-version: 2.2
|
|
-- Initial package description 'pkgb.cabal' generated by 'cabal init'. For
|
|
-- further documentation, see http://haskell.org/cabal/users-guide/
|
|
|
|
name: pkgb
|
|
version: 0.1.0.0
|
|
-- synopsis:
|
|
-- description:
|
|
-- bug-reports:
|
|
license: LicenseRef-PublicDomain
|
|
author: Rodney Lorrimar
|
|
maintainer: rodney.lorrimar@iohk.io
|
|
category: Testing
|
|
|
|
library
|
|
exposed-modules: ConduitExample
|
|
, PkgB
|
|
build-depends: base
|
|
, pkga
|
|
, conduit
|
|
, conduit-extra
|
|
, directory
|
|
, resourcet
|
|
hs-source-dirs: src
|
|
default-language: Haskell2010
|
|
|
|
executable pkgb
|
|
main-is: Main.hs
|
|
build-depends: base
|
|
, pkgb
|
|
, optparse-applicative
|
|
, text
|
|
hs-source-dirs: app
|
|
default-language: Haskell2010
|
|
|
|
test-suite tests
|
|
type: exitcode-stdio-1.0
|
|
main-is: tests.hs
|
|
hs-source-dirs: app
|
|
build-depends: base
|
|
, pkgb
|
|
, process
|
|
build-tool-depends: pkga:pkga-exe
|