summaryrefslogtreecommitdiff
path: root/default.nix
blob: d7da8cd1f0b610d07782e9ba2156a76d591d73e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# 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