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,15 @@
# SPDX-FileCopyrightText: 2022 Jan Tojnar
# SPDX-FileCopyrightText: 2024 Jan Tojnar
# SPDX-License-Identifier: MIT
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 { };
haskellPackages = pkgs.haskellPackages.override {
overrides = final: prev: {
hakyll-contrib-tojnar = final.callPackage "${sources.hakyll-contrib-tojnar}/hakyll-contrib-tojnar.nix" { };
mala-zahradka-pro-radost-cz = final.callPackage ./site/mala-zahradka-pro-radost-cz.nix { };
};
};
in
flake.defaultNix
haskellPackages.mala-zahradka-pro-radost-cz