Add hacky nix workaround

This commit is contained in:
Leon Vatthauer 2024-04-06 17:53:34 +02:00
parent 595c00995c
commit 86e8a2e916
Signed by: leonv
SSH key fingerprint: SHA256:G4+ddwoZmhLPRB1agvXzZMXIzkVJ36dUYZXf5NxT+u8
2 changed files with 15 additions and 0 deletions

11
default.nix Normal file
View file

@ -0,0 +1,11 @@
# Make this flake based dir work like a normal derivation:
# https://nixos.wiki/wiki/Flakes#Using_flakes_with_stable_Nix
(import (
let
lock = builtins.fromJSON (builtins.readFile ./flake.lock);
in fetchTarball {
url = "https://github.com/edolstra/flake-compat/archive/${lock.nodes.flake-compat.locked.rev}.tar.gz";
sha256 = lock.nodes.flake-compat.locked.narHash; }
) {
src = ./.;
}).defaultNix

View file

@ -3,6 +3,10 @@
description = "My personal website";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11";
inputs.flake-utils.url = "github:numtide/flake-utils";
inputs.flake-compat = {
url = "github:edolstra/flake-compat";
flake = false;
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system: