Flakes copy the whole gigantic repo to store all the time, quickly eating all the drive capacity.
This commit is contained in:
19
default.nix
19
default.nix
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user