Commit Graph

16 Commits

Author SHA1 Message Date
Silvan Mosberger
b8fb659620
Project revamp (#64)
* Remove update command

Will be replaced with haskell.nix

* Project revamp using haskell.nix

- Only unstable HIE
- Only GHC 8.6.5 and 8.8.3 (or more in the future), but on Linux for both glibc 2.27 (NixOS 19.09) and glibc 2.30 (NixOS 20.03/unstable)
- Using haskell.nix for the builds. This makes evaluation slower, but makes things simpler overall.
- No global installation intended anymore, instead you add HIE to your projects shell.nix file (to be documented in future commits)

Co-authored-by: galagora <45048741+galagora@users.noreply.github.com>

* Remove old files not needed anymore with the revamp

* Add new haskell.nix-generated files

* Add haskell.nix template

* Add nixpkgs infra template

* Build, push and test using GitHub Actions

This builds and pushes all necessary configurations using GitHub Actions
automatically. Also tests the templates

* Update Readme for revamp

* Add template documentation

* Add warning for unsupported versions

* Add haskell.nix + stack template

* Minor Readme changes

* Remove check-cache script

* Don't CI on pushes to haskell.nix

* Use same haskell.nix version for stack/cabal + cleanups

Co-authored-by: galagora <45048741+galagora@users.noreply.github.com>
2020-07-25 15:25:19 +02:00
Silvan Mosberger
67227c42ab
Add hie-bios binary to combined builds 2020-01-29 22:45:05 +01:00
Silvan Mosberger
57d38bdba5
Remove bios version since both stable and unstable now use hie-bios 2020-01-29 22:44:41 +01:00
Silvan Mosberger
9540f6aaeb
Slightly better formatting for fallback script 2019-07-13 17:44:24 +02:00
Silvan Mosberger
b8c0a965e1
Change Nix file to work with multiple versions 2019-05-22 23:02:06 +02:00
Silvan Mosberger
8a3a0c0202
Add support for different revisions in the update script 2019-05-06 19:06:53 +02:00
Silvan Mosberger
544ea0c96f
Fix infinite process recursion when no matching version found 2019-05-01 18:42:05 +02:00
Silvan Mosberger
ab36b3209b
Dynamically link HIE for great TH speedup
See https://github.com/domenkozar/hie-nix/issues/59

Thanks to @mpickering for pointing this out
2019-04-27 19:46:53 +02:00
Silvan Mosberger
7957ff7306
Fix combined version when only one version is selected
In that case, buildEnv would say "Let's link /bin directly", which
doesn't work for this because we need to remove $out/bin/hie-wrapper and
replace it.
2019-04-26 16:14:21 +02:00
Silvan Mosberger
d4ad12cae0
Redo combined to use a single derivation after all
It's nicer to see what binaries it produced directly
2019-04-26 15:31:27 +02:00
Silvan Mosberger
fa5265d44f
Add some comments to the HIE overrides 2019-04-26 02:58:21 +02:00
Silvan Mosberger
e8b017f9e8
Flesh out version selections, add Readme 2019-04-26 02:29:47 +02:00
Silvan Mosberger
8e6a43ed2d
default.nix: Refactor big time, not quite done yet though 2019-04-10 02:55:19 +02:00
Silvan Mosberger
22e6e19124
Embed versions in derivation names; add binaries for stack2nix 2019-04-06 20:03:06 +02:00
Silvan Mosberger
ba4e8c7ad5
Faster, more succeeding builds, better everything
- Now fetching nixpgks with fetchFromGitHub by computing and saving the
sha256 at update time
- Detecting core GHC libraries and setting them to null to fix builds,
workaround for https://github.com/input-output-hk/stack2nix/issues/134
- Add override directory to fix builds for specific ghc versions
- Speed up builds by disabling library profiling for everything
- New nix file structure with powerful selection mechanisms
2019-04-06 06:44:02 +02:00
Silvan Mosberger
199a76bb2a
Initial version 2019-04-05 08:07:08 +02:00