nix: add flake

This commit is contained in:
Bruno BELANYI 2021-05-28 18:22:52 +02:00
parent df009217c9
commit 140726a6ff
2 changed files with 82 additions and 0 deletions

38
flake.nix Normal file
View file

@ -0,0 +1,38 @@
{
description = "Ambroisie's blog";
inputs = {
futils = {
type = "github";
owner = "numtide";
repo = "flake-utils";
ref = "master";
};
# https://nixpk.gs/pr-tracker.html?pr=124808
nixpkgs = {
type = "github";
owner = "NixOS";
repo = "nixpkgs";
ref = "nixos-unstable";
};
};
outputs = { self, futils, nixpkgs } @ inputs:
futils.lib.eachSystem futils.lib.allSystems (system:
let
inherit (nixpkgs) lib;
pkgs = nixpkgs.legacyPackages.${system};
in
{
devShell = pkgs.mkShell {
name = "blog";
buildInputs = with pkgs; [
gnumake
hugo
];
};
}
);
}