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

Add Nix expressions required to use newest fmt library #2947

Merged
merged 5 commits into from
Oct 14, 2021

Conversation

sevanspowell
Copy link
Contributor

  • We want to update to the newest fmt library (fmt-6.3.0) to make use of new Buildable instances.
  • Ran niv update haskell.nix to get latest hackage.nix, which provides us with the Nix expressions for fmt-6.3.0.
  • There is some build issue with haskell-language-server-1.2.0.0 and the version of haskell.nix we've pinned, so update haskell-language-server to 1.4.0.0.
  • Update the index-state so we can build it.
  • ./nix/regenerate.sh: regenerate the materialized files

@sevanspowell sevanspowell self-assigned this Oct 5, 2021
@@ -101,7 +103,7 @@
};
exes = {
"haskell-language-server" = {
depends = ((((((((((((((([
depends = (((((((((((((((((([
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😄

Base automatically changed from jonathanknowles/adp-1037/test-coin-selection-preparation to master October 5, 2021 07:09
@HeinrichApfelmus
Copy link
Contributor

The "Stack Rebuild" item in buildkite fails with

bash: /nix/store/wx1vk75bpdr65g6xwxbj4rw0pk04v5j3-glibc-2.27/lib/libc.so.6: version `GLIBC_2.33' not found (required by /nix/store/yn7nd41grg2mzvzliphalk70hs0rfpdr-ncurses-6.2/lib/libncursesw.so.6)

This prevents merging, I suppose?

No idea what's going on, but @rvl mentioned an issue similar to this in our internal nix-best-practices channel.

This "GLIBC_2.33 issue" also prevents the update to GHC 8.10.7 in #2937

@sevanspowell sevanspowell force-pushed the sevanspowell/adp-1037/fmt-library-nix-support branch from 6c8ac91 to 4840ce0 Compare October 12, 2021 07:52
sevanspowell and others added 5 commits October 14, 2021 10:47
- We want to update to the newest fmt library (fmt-6.3.0) to make use of new
  Buildable instances.
- Ran `niv update haskell.nix` to get latest hackage.nix, which provides us with
  the Nix expressions for fmt-6.3.0.
- There is some build issue with haskell-language-server-1.2.0.0 and the version
  of haskell.nix we've pinned, so update haskell-language-server to 1.4.0.0.
- Update the index-state so we can build it.
- `./nix/regenerate.sh`: regenerate the materialized files
- This is to overcome the following error when building cardano-config, a
dependency:

```
src/Cardano/Config/Git/Rev.hs:33:35: error:
    • Exception when trying to run compile-time code:
        git: readCreateProcessWithExitCode: posix_spawnp: failed (Undefined error: 0)
      Code: gitRevFromGit
    • In the untyped splice: $(gitRevFromGit)
   |
33 |         fromGit = T.strip (T.pack $(gitRevFromGit))
```

That is, the Template Haskell was failing to compile because it did not have git
in PATH.
- Note the repeated "buildPackages" attr. This snippet was provided by Hamish
Mackenzie, who said that it's "because git had (think it still might) a
dependency on python and that depended on gdb and as a result when cross
compiling buildPackages.git and buildPackages.buildPackages.git were subtly
different (causing cache misses). I am not sure if it is a problem with
gitMinimal but it might be."
@sevanspowell sevanspowell force-pushed the sevanspowell/adp-1037/fmt-library-nix-support branch from c826455 to ced95e1 Compare October 14, 2021 02:47
@sevanspowell
Copy link
Contributor Author

bors r+

@iohk-bors
Copy link
Contributor

iohk-bors bot commented Oct 14, 2021

Build succeeded:

@iohk-bors iohk-bors bot merged commit 99143c9 into master Oct 14, 2021
@iohk-bors iohk-bors bot deleted the sevanspowell/adp-1037/fmt-library-nix-support branch October 14, 2021 06:08
iohk-bors bot added a commit that referenced this pull request Oct 21, 2021
2833: nix: Take GHC version and index-state from cabal.project r=rvl a=rvl

- ~Bumps Haskell.nix to latest master. This includes input-output-hk/haskell.nix#1200, which patches Cabal to fix bugs which made the solver excessively slow.~ ⇒ PR #2947
- `.gitignore` tweak to make it more specific - don't ask.
- nix: Take GHC version and index-state from `cabal.project`
- Use more of `nix-shell --pure` for buildkite. 

### Issue Number

#2812


2983: Enable more tests for construct ep r=piotr-iohk a=piotr-iohk

- bcf78bf
  Enable remaining construct ep integration tests (where applicable)
  
- df75842
  Make signTx DSL useful also in balance -> sign -> submit workflow
  
- 4e26f5d
  Update swagger to reflect current state of affairs, in particular removing Byron Transactions New altogether from displaying on rendered api doc
  
- d80d6b6
  Use expectedFee returned by construct ep rather than explicit value

### Comments

Wanted to add more tests for balance ep, but noticed first that few tests for construct can be enabled. 
Also updated swagger so it reflects current state more accurately.

### Issue Number

sort of ADP-1223


Co-authored-by: Rodney Lorrimar <[email protected]>
Co-authored-by: Piotr Stachyra <[email protected]>
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

Successfully merging this pull request may close these issues.

3 participants