Abandon flakes in favour of npins
Some checks failed
deploy-pages Failed to deploy

Flakes copy the whole gigantic repo to store all the time, quickly eating all the drive capacity.
This commit is contained in:
2024-07-13 12:40:22 +02:00
parent 885a1a4cea
commit 11203e2e3d
13 changed files with 178 additions and 1200 deletions

View File

@@ -1,14 +1,18 @@
# SPDX-FileCopyrightText: 2022 Jan Tojnar
# SPDX-FileCopyrightText: 2024 Jan Tojnar
# SPDX-License-Identifier: MIT
{
dev ? false,
}:
let
lock = builtins.fromJSON (builtins.readFile ./flake.lock);
flake-compat = builtins.fetchTarball {
url = "https://github.com/edolstra/flake-compat/archive/${lock.nodes.flake-compat.locked.rev}.tar.gz";
sha256 = lock.nodes.flake-compat.locked.narHash;
};
flake = import flake-compat {
src = ./.;
};
sources = import ./npins;
pkgs = import sources.nixpkgs { };
inherit (pkgs) lib;
site = import ./.;
in
flake.shellNix
pkgs.mkShell {
nativeBuildInputs = [
site
pkgs.vips
] ++ lib.optionals dev [ pkgs.cabal-install ];
}