Skip to content

Commit 7d99e0b

Browse files
committed
Merge branch 'master' into rfc101-style
2 parents 2b5ee82 + 0c2fb12 commit 7d99e0b

23 files changed

+1320
-464
lines changed

.buildkite/pipeline.yml

-32
This file was deleted.

.github/workflows/main.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# © 2019-2023 Serokell <[email protected]>
2+
# © 2019-2023 Lars Jellema <[email protected]>
3+
#
4+
# SPDX-License-Identifier: MPL-2.0
5+
6+
name: CI
7+
on:
8+
pull_request:
9+
push:
10+
branches:
11+
- master
12+
13+
jobs:
14+
check:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v4
18+
19+
- uses: cachix/install-nix-action@v26
20+
21+
- name: reuse lint
22+
run: nix shell .#packages.x86_64-linux.reuse -c reuse lint
23+
24+
- name: build nixfmt
25+
run: nix build -L .#nixfmt-static
26+
if: success() || failure()

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,14 @@
99

1010
## Unreleased
1111

12+
* Parsing fixes
13+
* Quotes in inherit statements (like `inherit "or";`) are now supported.
14+
15+
## 0.6.0 -- 2023-10-31
16+
1217
* Fix escaping of interpolations after dollar signs.
1318
* Fix nixfmt trying to allocate temp files that aren't used.
19+
* Don't write if files didn't change, fixing treefmt compatibility
1420
* Nixfmt now accepts the '-' argument to read from stdin.
1521
* `nixfmt [dir]` now recursively formats nix files in that directory.
1622
* Float and int literal parsing now matches nix.

MAINTENANCE.md

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<!-- © 2023 piegames <[email protected]>
2+
-
3+
- SPDX-License-Identifier: MPL-2.0
4+
-->
5+
6+
# Maintainer documentation
7+
8+
## Making a new release
9+
10+
- Check the commit log if anything is missing from the change log.
11+
- Check dependency versions in `nixfmt.cabal`, bump upper bounds if possible.
12+
- Bump the version.
13+
- Give it a git tag.
14+
- Upload to hackage using `cabal sdist`. See https://hackage.haskell.org/upload for details.

README.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,15 @@
1010

1111
You are encouraged to test this out on your code and submit any undesirable formatting you find as an issue
1212

13-
[![Build Status](https://badge.buildkite.com/b37f73adea391439e63288e8fd3b47f4b98fb9640bb864ccfa.svg)](https://buildkite.com/serokell/nixfmt)
14-
[![Cachix](https://img.shields.io/badge/cachix-nixfmt-blue.svg)](https://nixfmt.cachix.org)
13+
![Build Status](https://github.com/serokell/nixfmt/actions/workflows/main.yml/badge.svg?branch=master)
14+
15+
## State
16+
17+
`nixfmt` will form the basis for the initial official standard Nix formatter, as established by [RFC 166](https://github.com/NixOS/rfcs/pull/166).
18+
19+
The established standard Nix formatting differs considerably from the original one. Be aware of this if you track the main branch. Until the first new release the main branch should be considered **very unstable**.
20+
21+
For more details, see the [RFC implementation tracking issue](https://github.com/serokell/nixfmt/issues/153).
1522

1623
## Installation
1724

@@ -21,8 +28,6 @@ You are encouraged to test this out on your code and submit any undesirable form
2128

2229
- To get the most recent version, install from master:
2330

24-
# Optional: use cachix to get cached builds even for master
25-
cachix use nixfmt
2631
nix-env -f https://github.com/serokell/nixfmt/archive/master.tar.gz -i
2732

2833
- Nix with flakes
@@ -51,11 +56,6 @@ Haskell dependencies will be built by Cabal.
5156
* `nixfmt file.nix` – format the file in place
5257

5358

54-
## For Contributors
55-
56-
We welcome issues and pull requests on GitHub.
57-
58-
5959
## About Serokell
6060

6161
`nixfmt` is maintained and funded with :heart: by

0 commit comments

Comments
 (0)