Commit Graph

2223 Commits

Author SHA1 Message Date
IOHK
942108ec13 Update Hackage and Stackage 2022-04-05 01:19:46 +00:00
Hamish Mackenzie
dbb6409cab
Add windows-secp256k1 binary distribution (#1424) 2022-04-04 16:54:07 +12:00
Hamish Mackenzie
51bc73490c
Bump nixpkgs pins (#1426) 2022-04-04 16:04:44 +12:00
IOHK
5e792d5cdc Update Hackage and Stackage 2022-04-04 01:16:31 +00:00
IOHK
ff135f885a Update Hackage and Stackage 2022-04-03 01:15:59 +00:00
IOHK
9c6e2f0449 Update Hackage and Stackage 2022-04-02 01:14:58 +00:00
Hamish Mackenzie
97b3a67789
Fix typo & comment out cross comp in eg. flake.nix (#1423) 2022-04-01 18:18:42 +13:00
Hamish Mackenzie
e9a93540c3
Look for DLLs in /bin directory of pkgconfig deps (#1422)
We include the /bin directory of `component.libs` in `extra-lib-dirs` on windows, but not `components.pkgconfig`.  This causes confusing differences between the behavior depending on how a dependency was specified in the `.cabal` file or added in a module.  If it wounds up in `components.libs` the need for DLLs would propagate correctly, but if it was only in `componets.pkgconfig` DLLs would not be included when building TH code and did not get symlinked to `exe` component output /bin dirs.
2022-04-01 16:35:04 +13:00
IOHK
956ffffe98 Update Hackage and Stackage 2022-04-01 01:17:50 +00:00
IOHK
3fbb17e63c Update Hackage and Stackage 2022-03-31 01:19:07 +00:00
IOHK
83bf601595 Update Hackage and Stackage 2022-03-30 01:19:19 +00:00
IOHK
ce2d6dede2 Update Hackage and Stackage 2022-03-29 01:16:29 +00:00
Hamish Mackenzie
8eb5d29d37
Support Nix <2.4 (#1418)
* Downgrades the error to a warning.
* Adds `filterPath` as a way to disable filtering to have caching work between Nix <2.4 and >=2.4.
* Disables filtering on `haskell-nix.hackage-project` based functions (should make all the GHC derivations the same).

I think it would also be possible to make a `filterPath` implementation that recursively used `builtins.readDir` and called the `filter` function to implement filtering on Nix <2.4, but I am not sure if it is worth it.

Anyone that needs the old behaviour for project packages (consistent filtering between <2.4 and >=2.4, but not between store and local) replace:

```
project = pkgs.haskell-nix.cabalProject {
  src = pkgs.haskell-nix.haskellLib.cleanGit {
    src = ./.;
  };
};
```

```
project = pkgs.haskell-nix.cabalProject {
  src = pkgs.haskell-nix.haskellLib.cleanGit {
     src = {
       outPath = ./.;
       filterPath = { path, ... }@args:
         if builtins.hasContext (toString path) then path else builtins.path args;
     };
  };
};
```
2022-03-29 01:24:01 +13:00
IOHK
9660601302 Update Hackage and Stackage 2022-03-28 01:17:37 +00:00
IOHK
7315209dbf Update Hackage and Stackage 2022-03-27 01:15:47 +00:00
IOHK
dfcc83fcd6 Update Hackage and Stackage 2022-03-26 01:15:39 +00:00
Hamish Mackenzie
4b6ee9767d
Make DLLs in deps available to wine TH runner (#1405)
This is a better fix to the problem of making DLLs available to the process running in wine that is used to evaluate TH code when cross compiling for Windows.

Also fixes macOS loadArchive in TH for ghc 9

Co-authored-by: Michael Peyton Jones <michael.peyton-jones@iohk.io>
2022-03-25 21:44:02 +13:00
IOHK
2c895a2c41 Update Hackage and Stackage 2022-03-25 01:23:00 +00:00
DavHau
a385241331
Remove canCleanSource (#1409)
In recent nix, builtins.path works in restricted eval mode.
Therefore canCleanSource is not required anymore.

follow up on #1403

* add comment on hydra overlay

* throw error on outdated nix version
2022-03-25 12:57:36 +13:00
IOHK
7ae4953cff Update Hackage and Stackage 2022-03-24 01:20:08 +00:00
IOHK
b87bc95b04 Update Hackage and Stackage 2022-03-23 01:16:20 +00:00
Jean-Baptiste Giraudeau
53ffd8eac6
Enable static build of secp256k1 on musl (#1413) 2022-03-22 14:56:27 +00:00
Hamish Mackenzie
a4da3fa890
Better error when GHC is too old to build (#1411)
Currently we often get confusing errors (infinite loops looking for impossible materialization or GHC build errors) when trying to build a GHC version that is never going to work on the platform we are building for.  In particular it is common to on M1 Macs to forget to include `--system x86_64-darwin` and wind up with a confusing error.

With this change the error is more clear:

```
hamish@Hamishs-MBP haskell.nix % nix-build -A pkgs-unstable.haskell-nix.compiler.ghc8105
error: Desired GHC (8.10.5) is older than the bootstrap GHC (8.10.7) for this platform (aarch64-apple-darwin).
```
2022-03-22 11:59:45 +00:00
IOHK
a69616cebe Update Hackage and Stackage 2022-03-22 01:16:24 +00:00
Ian
9fae2eb97f
Replace deprecated NixOS binary cache settings (#1410)
`nix.binaryCachePublicKeys` and `nix.binaryCaches` are now deprecated in NixOS: the current names for these settings are `nix.settings.trusted-public-keys` and `nix.settings.substituters`, respectively
2022-03-21 16:27:36 +00:00
IOHK
3600267d49 Update Hackage and Stackage 2022-03-21 01:20:17 +00:00
IOHK
268f525860 Update Hackage and Stackage 2022-03-20 01:14:54 +00:00
IOHK
ed0b065b41 Update Hackage and Stackage 2022-03-19 01:15:07 +00:00
DavHau
1ca99326b2
always clean the source, no matter what (#1403)
* always clean the source, no matter what

* update hydra
2022-03-19 02:08:11 +13:00
IOHK
b944c8087d Update Hackage and Stackage 2022-03-18 01:21:21 +00:00
IOHK
f3f2c08051 Update Hackage and Stackage 2022-03-17 01:17:58 +00:00
IOHK
f44f0845b2 Update Hackage and Stackage 2022-03-16 01:18:36 +00:00
Hamish Mackenzie
eb49a3b721
Add secp256k1 DLL for win cross compilation of TH (#1400) 2022-03-15 16:33:49 +13:00
IOHK
308c937bfc Update Hackage and Stackage 2022-03-15 01:17:55 +00:00
IOHK
52acfe6f49 Update Hackage and Stackage 2022-03-14 01:15:47 +00:00
IOHK
548888187d Update Hackage and Stackage 2022-03-13 01:15:31 +00:00
Hamish Mackenzie
c5fa3f4a4b
nixpkgs gdk_pixbuf is now gdk-pixbuf (#1398) 2022-03-12 21:25:18 +13:00
Hamish Mackenzie
6fce9ef514
spdx json file is in a .json output for latest nixpkgs (#1397)
See https://github.com/NixOS/nixpkgs/pull/161958
2022-03-12 20:03:27 +13:00
Viktor Kronvall
185dc162b3
configureFlags must be a list in newer nixpkgs (#1396) 2022-03-12 19:45:59 +13:00
IOHK
f09a6c87a5 Update Hackage and Stackage 2022-03-12 01:14:49 +00:00
IOHK
4cda3aeea8 Update Hackage and Stackage 2022-03-11 01:18:37 +00:00
IOHK
cf6da66ca6 Update Hackage and Stackage 2022-03-10 01:18:59 +00:00
IOHK
11321af2b6 Update Hackage and Stackage 2022-03-09 01:19:19 +00:00
Carsten Csiky
95b3617b2a
Add icu-i18n as alias to nixpks-map (#1395)
This is necessary because this alias is used by `text-icu` https://github.com/haskell/text-icu/blob/master/text-icu.cabal#L72
2022-03-08 11:32:10 +00:00
Hamish Mackenzie
fa2d8a9b6f
Add ghc 9.2.2 (#1394) 2022-03-08 14:34:04 +13:00
IOHK
aac3388395 Update Hackage and Stackage 2022-03-08 01:21:17 +00:00
Hamish Mackenzie
b1113d486f
Turn off test broken by latest hspec-core (#1393) 2022-03-07 20:31:52 +13:00
IOHK
150c7b98d4 Update Hackage and Stackage 2022-03-07 03:57:17 +00:00
Hamish Mackenzie
7e06e14ae1
Use ghc 8.8.3 to boot native aarch64-linux compiler (#1390)
For some reason there is no binary for 8.8.4 see:

https://downloads.haskell.org/ghc/8.8.3/
https://downloads.haskell.org/ghc/8.8.4/
2022-03-03 16:33:04 +13:00
Michael Peyton Jones
315b6d353d
Don't use allowSubstitutes=false (#1389)
`runCommandLocal` sets both `preferLocalBuild=true` and
`allowSubstitutes=false`. There's an
[argument](https://github.com/NixOS/nix/issues/4442) that the latter is a
misfeature. There's really no reason not to download something from a
substitutor if it's actually been built already.

We can get the effect that we want easily enough by just setting
`preferLocalBuild=true` alone.
2022-03-03 15:17:42 +13:00