feat: flake-compat

This commit is contained in:
Oskar Manhart
2024-10-22 20:49:32 +02:00
parent 509a782a4a
commit 9d455ba753
5 changed files with 82 additions and 19 deletions

16
default.nix Normal file
View File

@@ -0,0 +1,16 @@
# Copyright (c) 2024 Oskar Manhart
# All rights reserved.
#
# SPDX-License-Identifier: AGPL-3.0-or-later
(import (
let
lock = builtins.fromJSON (builtins.readFile ./flake.lock);
in
fetchTarball {
url =
lock.nodes.flake-compat.locked.url
or "https://github.com/edolstra/flake-compat/archive/${lock.nodes.flake-compat.locked.rev}.tar.gz";
sha256 = lock.nodes.flake-compat.locked.narHash;
}
) { src = ./.; }).defaultNix