add treefmt

This commit is contained in:
GTrunSec 2022-04-02 15:40:44 -07:00
parent 91d1041e06
commit f5d82afca7
No known key found for this signature in database
GPG key ID: 2368FAFA4ABDD2A0
11 changed files with 147 additions and 103 deletions

View file

@ -1,8 +1,14 @@
{system ? builtins.currentSystem}:
(
(import ./compat.nix).flake-compat {
src = ./.;
inherit system;
}
import (
let
lock = builtins.fromJSON (builtins.readFile ./flake.lock);
in
fetchTarball {
url = "https://github.com/edolstra/flake-compat/archive/${
lock.nodes.flake-compat.locked.rev
}.tar.gz";
sha256 = lock.nodes.flake-compat.locked.narHash;
}
) {src = ./.;}
)
.defaultNix