Commit Graph

45 Commits

Author SHA1 Message Date
Arya Irani
32fba96c83
Merge pull request #5036 from sellout/add-nix-checks 2024-06-03 18:06:38 -04:00
Greg Pfeil
f943ba157b
Remove flake-compat input
`flake-compat` is used to produce “old-style” default.nix and shell.nix
files from a flake. We have neither and so this input is simply unused.
2024-06-01 13:03:34 -06:00
Greg Pfeil
635f0c9438
Run Cabal test-suites as Nix checks 2024-06-01 13:03:03 -06:00
Greg Pfeil
07d9610eba
A few minor manual formatting adjustments 2024-06-01 01:58:38 -06:00
Greg Pfeil
a188bb0e5b
Run the Nix formatter for the first time 2024-06-01 01:54:07 -06:00
Greg Pfeil
f7871c765f
Add a Nix formatter
This sets the flake’s `formatter` output to [Alejandra](https://kamadorueda.com/alejandra/).
2024-06-01 01:54:03 -06:00
Greg Pfeil
257337e915
Prefix the flattened flake outputs
This adds some grouping to the outputs, since they can’t be grouped in attribute
sets.

It also updates the relevant docs with the new names.

Here are the renamings:
- `packages.haskell-nix.some:cabal:thing`→ `packages.component-some:cabal:thing`
- `packages.docker.ucm` → `packages.docker-ucm`
- `apps.haskell-nix.some:cabal:thing` → `apps.component-some:cabal:thing`, and
- `devShells.haskell-nix.unison-cli` → `devShells.cabal-unison-cli`.
2024-05-28 10:07:10 -06:00
Greg Pfeil
babd9b0c69
Repair the Nix flake
This does the minimum to get `nix flake check` working.;

The primary issue is that flakes require flat package sets, and this flake
produced nested ones. This flattens the package sets without renaming anything.
E.g., `packages.${system}.docker.ucm` is now `packages.${system}.ucm`, and
similar for other derivations.

The only other change was to correct the attribute name for the UCM docker
image’s command.
2024-05-28 10:07:09 -06:00
Greg Pfeil
678c6a2e3a
Add a default Nix package
development.markdown says to use `nix build` to build the `unison` executable,
but it doesn’t work, because there is not a `default` package. This makes the
behavior match the docs.
2024-05-13 23:52:16 -06:00
Arya Irani
f586e377f7
Merge pull request #4891 from unisonweb/add-nix-docker-image
Add docker image to nix outputs
2024-04-17 13:59:48 -04:00
Mitchell Rosen
fe0f4dfa67 update a few unison-cli:exe:unison strings to unison-cli-main:exe:unison 2024-04-04 17:06:12 -04:00
Travis Staton
2baf37e38c
docker-example 2024-03-14 19:32:38 -04:00
Travis Staton
1c02536cf9
update macsdk version 2023-12-04 11:53:26 -05:00
Travis Staton
2986f3f7b2
withcc 2023-12-04 11:45:24 -05:00
Travis Staton
7fa2d606b5
provide some deps for the nix linker 2023-12-04 11:05:39 -05:00
Cody Allen
c9da24a33e
Nix flake: set default app to haskell-nix unison-cli app 2023-11-21 09:42:40 -05:00
Travis Staton
6806cf863f
export wrapped stack 2023-11-17 11:31:37 -05:00
Travis Staton
5e5b73d779
tuck devShells 2023-11-16 17:11:44 -05:00
Travis Staton
65ec6b7184
tuck haskell.nix packages under key 2023-11-16 17:05:59 -05:00
Travis Staton
f68b9b43e7
remove haskell.nix outputs 2023-11-16 16:50:58 -05:00
Travis Staton
29b232d696
Add build-tools devShell that doesn't depend on haskell.nix 2023-11-15 15:32:38 -05:00
Travis Staton
101b48e1ed add haskell-language-server-wrapper symlink 2023-08-30 11:09:30 -04:00
Arya Irani
5966a2a591
Merge pull request #4244 from unisonweb/travis/github-action-populate-nix-cache 2023-08-10 16:30:22 -04:00
Arya Irani
2e456e2ad0
remove cache.iog.io
Some of the packages had invalid signatures for darwin
2023-08-07 10:53:52 -04:00
Travis Staton
6e05935fb8
add "all" package to flake 2023-08-03 16:30:44 -04:00
Cody Allen
d9a33699ad
Update unison cachix public key
This recently changed but wasn't updated in `flake.nix`.
2023-08-02 09:36:30 -04:00
Travis Staton
c5d66644fd
add boot packages 2023-07-07 12:14:07 -04:00
Travis Staton
890e20f1ef
add glibcLocales 2023-07-07 12:13:54 -04:00
Travis Staton
99b6571505
add Cocoa for darwin 2023-07-05 11:57:50 -04:00
Travis Staton
7da67e142b
add pkg-config and zlib 2023-07-05 11:34:56 -04:00
Travis Staton
46df19017a
add stack wrapper 2023-07-03 22:16:42 -04:00
Travis Staton
a4e149b69f
add zlib workaround 2023-07-03 22:10:55 -04:00
Travis Staton
db2b9e80bc
formatting 2023-07-03 22:10:18 -04:00
Travis Staton
e3a50d7367
add unison cachix 2023-06-14 13:40:27 -04:00
Travis Staton
f98c06a285
downgrade to ghc 9.2.7 to be consistent 2023-06-14 13:40:08 -04:00
Travis Staton
91059c2a04
add some nix workflow docs 2023-06-13 16:21:40 -04:00
Travis Staton
78a9f51a27
use haskell.nix 2023-06-13 16:21:30 -04:00
Cody Allen
b4ed07d51a
nix flake: remove commented out code
Oops I didn't mean to push this commented-out code...
2023-05-31 14:33:46 -04:00
Stew O'Connor
fde21d29de add package to flake.nix to fix locales 2023-05-31 09:19:58 -07:00
Cody Allen
e75a27120c
Update nix flake for GCH 9.2.7
Resolves #4026

I was able to remove some overrides that we were using to get ormolu
0.5.0.1 to build with GHC 8.10.7. It's possible that more cruft can be
removed, but I don't understand it well enough to feel confident in
messing with it. We are no longer explicitly asking for ormolu 0.5.0.1
because I couldn't figure out how to do that, but 0.5.0.1 is the
version in the nixpkgs hash that we are currently locked on.

On my linux box both `stack build && stack test` and HLS support work.
2023-05-25 10:35:36 -04:00
Travis Staton
ac37e76fab
update nix flake
- bump nixpkgs
- bump ormolu to 0.5.0.1
- ensure hls is linked to ormolu 0.5.0.1
- add package outputs and do some organization
2023-03-15 14:11:23 -04:00
Cody Allen
a45c8d87dc
nix dev-shell: darwin requires Cocoa 2023-01-30 14:10:33 -05:00
Travis Staton
6472f51ccf
pass stack flags to ensure nix provided ghc is used 2023-01-30 12:50:04 -05:00
Travis Staton
d1bb7118ab
use llvm for native compilation on aarch64 2023-01-30 12:41:30 -05:00
Travis Staton
c9dc7ce2e9
Add nix flake for common dev env 2023-01-27 12:46:48 -05:00