Sridhar Ratnakumar
8edc7cacce
nix: Remove treefmt TODO
...
Don't care much
2022-07-23 10:03:01 -04:00
Sridhar Ratnakumar
ccd03a1fc4
nix: update haskell-flake
2022-05-30 19:07:38 -04:00
Sridhar Ratnakumar
45ee5796a4
Update haskell-flake for better default handling
2022-05-30 18:48:39 -04:00
Sridhar Ratnakumar
18b6248dce
Trim down flake-compat usage ( #23 )
2022-05-30 09:24:56 -04:00
Sridhar Ratnakumar
1127faaba2
Delegate most Nix to srid/haskell-flake
(a flake-parts
module for Haskell dev) ( #22 )
...
* Move Haskell stuff into separate module
cf. https://github.com/hercules-ci/flake-parts/blob/main/modules/apps.nix
* Parametrize the haskell part
* Allow user to override default attrs
* Add baseBuildTools (so they can be overriden)
* Don't hardcode non-essential build tools
* Avoid types.anything
* Merge into one buildTools, using sets
* getExe and type are redundant
Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
* Use docstring wherever possible
* Use ${self} as default for root
* Allow defining multiple Haskell packages
The downside: the user is forced to define 'default' flake outputs.
* Automatically create 'default' attr if a singleton projects set
* Make haskell.nix its own repo
Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
2022-05-30 09:16:38 -04:00
Sridhar Ratnakumar
3fc6858830
nix: Update nixpkgs, and use 'flakeExposed' for systems list
2022-05-27 16:31:08 -04:00
Sridhar Ratnakumar
a2f0e945e0
nix: Use getExe
2022-05-27 15:30:21 -04:00
Sridhar Ratnakumar
8ac592271b
flake-utils
-> flake-parts
(#20 )
2022-05-26 07:25:38 -04:00
Sridhar Ratnakumar
c082385a7f
readme: mention 'nix run'
2022-05-22 14:53:04 -04:00
Sridhar Ratnakumar
37489ca53c
nix: remove Hercules
2022-05-22 14:48:09 -04:00
Sridhar Ratnakumar
f87b1ffccb
nix: Update inputs; tag flake-utils/v1.0.0
2022-05-21 06:49:02 -04:00
Sridhar Ratnakumar
b366d729d2
nix: Parametrize 'project' so withHoogle is used in shell only
2022-05-17 14:53:13 -04:00
Sridhar Ratnakumar
e4da4aef69
nix: Restore optionals behaviour for shellTools
2022-05-17 14:50:18 -04:00
Sridhar Ratnakumar
4a93410b77
Add bin/hoogle
2022-05-17 14:48:03 -04:00
Sridhar Ratnakumar
d65849a193
Use 'overrideCabal', which is much cleaner
2022-05-17 14:46:28 -04:00
Sridhar Ratnakumar
7f9fe62295
treefmt
2022-05-10 06:48:58 -04:00
Sridhar Ratnakumar
4f0f5e528f
Note on eachDefaultSystem
...
https://twitter.com/sridca/status/1523973629393911809
2022-05-10 06:46:17 -04:00
Sridhar Ratnakumar
ac77f14557
nix: No need to pin the hash; git branch HEAD provides it
2022-05-06 20:27:41 -04:00
Sridhar Ratnakumar
cc3b72eb5b
Advance nixpkgs
2022-05-04 16:25:42 -04:00
Sridhar Ratnakumar
2fbd9dbe57
Switch to treefmt; resolves #283
2022-05-04 16:24:34 -04:00
Davis Davalos-DeLosh
a1940b2d04
Fix development env (VSCode and nix develop)
...
On my machine, the latest refactoring seems to have broken the development environment and I could not access any of the dependencies specified in `shellDeps` or use any of the tools required by VSCode without this fix
2022-04-28 23:24:57 -06:00
Sridhar Ratnakumar
41229a73ed
Requires system
2022-04-27 19:47:58 -04:00
Sridhar Ratnakumar
187657e3e8
Support older Nix?
2022-04-27 19:46:02 -04:00
Sridhar Ratnakumar
5dad24283f
Refactor flake.nix
2022-04-27 18:55:51 -04:00
Sridhar Ratnakumar
916b9023d8
Remove the HLS check; it never worked
2022-04-27 18:35:24 -04:00
Sridhar Ratnakumar
40e67f8c97
Support for 'nix run'
2022-04-27 18:34:53 -04:00
Sridhar Ratnakumar
d9a4c36725
Revert "Use pkgs.nix-gitignore"
...
This reverts commit 3cfe2fe966
.
2022-04-27 17:42:26 -04:00
Sridhar Ratnakumar
3cfe2fe966
Use pkgs.nix-gitignore
2022-04-27 15:03:34 -04:00
Sridhar Ratnakumar
a5f4a75de1
Update nixpkgs
2022-04-27 15:02:18 -04:00
Sridhar Ratnakumar
b14123cb05
Update lint-utils
2022-04-20 13:29:08 -04:00
Sridhar Ratnakumar
c1234a48cb
Advance nixpkgs to restore m1 mac support
2022-04-09 11:45:55 -04:00
Sridhar Ratnakumar
7d508a9f4f
Disable hlint
2022-04-09 11:45:48 -04:00
Sridhar Ratnakumar
761fbc1138
Update lint-spec; and run hlint
2022-04-07 18:33:54 -04:00
Sridhar Ratnakumar
d4f809d1a6
GHC 9
2022-04-06 17:43:03 -04:00
Sridhar Ratnakumar
0f37d0ef05
Switch to declarative linters
...
Resolves #8
2022-03-30 15:12:35 -04:00
Sridhar Ratnakumar
357b9fafda
Check HLS in Hercules CI
2022-03-27 16:47:10 -04:00
Sridhar Ratnakumar
003e223b6b
Simplify concatApps further
2022-03-26 19:09:41 -04:00
Sridhar Ratnakumar
8db1c56767
Simplify concatApps
2022-03-26 18:43:55 -04:00
Sridhar Ratnakumar
c4043be3a9
Redundant argument
2022-03-26 15:06:15 -04:00
Sridhar Ratnakumar
82e7ee3aac
Add a comment explaining why we need the 'check' attribute
2022-03-26 14:52:43 -04:00
Sridhar Ratnakumar
b65926620e
Format for cabal and nix too
2022-03-26 12:04:22 -04:00
Sridhar Ratnakumar
3a330068f1
Update lint-utils to master, and fix checks
2022-03-26 11:59:19 -04:00
Sridhar Ratnakumar
e4babff826
Update nixpkgs
2022-03-25 14:27:56 -04:00
Sridhar Ratnakumar
03ad41b801
Update lint-utils; and add flake checks
2022-03-25 14:18:42 -04:00
Sridhar Ratnakumar
50e04b3658
Replace bin/format with lint-utils
2022-03-25 14:09:08 -04:00
Sridhar Ratnakumar
69564d969a
Advance nixpkgs
2022-03-23 13:52:08 -04:00
Sridhar Ratnakumar
63c385280e
Switch to fourmolu
2022-03-23 13:46:51 -04:00
Sridhar Ratnakumar
ca4f5df04d
Hercules CI
2022-03-23 13:39:20 -04:00
Sridhar Ratnakumar
f1f9125d20
Add hlint
2022-03-17 10:21:31 -04:00
Sridhar Ratnakumar
4721029d73
Avoid build tools during nix-build
2022-03-17 10:19:33 -04:00