mirror of
https://github.com/numtide/treefmt.git
synced 2024-11-29 18:41:16 +03:00
986f020c3d
Signed-off-by: Brian McGee <brian@bmcgee.ie>
24 lines
484 B
Nix
24 lines
484 B
Nix
# This file provides backward compatibility to nix < 2.4 clients
|
|
{system ? builtins.currentSystem}: let
|
|
lock = builtins.fromJSON (builtins.readFile ./flake.lock);
|
|
|
|
inherit
|
|
(lock.nodes.flake-compat.locked)
|
|
owner
|
|
repo
|
|
rev
|
|
narHash
|
|
;
|
|
|
|
flake-compat = fetchTarball {
|
|
url = "https://github.com/${owner}/${repo}/archive/${rev}.tar.gz";
|
|
sha256 = narHash;
|
|
};
|
|
|
|
flake = import flake-compat {
|
|
inherit system;
|
|
src = ./.;
|
|
};
|
|
in
|
|
flake.defaultNix
|