mykiwi/mykiwi.blogpublic Fork 0
13284292baaf02985a0f100766b934a53737c51d
Commits
Clone
git clone https://git.rickub.com/mykiwi/mykiwi.blog.git
git clone ssh://git@rickub.com/mykiwi/mykiwi.blog.git

Host key fingerprint (ed25519): SHA256:iycHnxEyq0Q7uyVpB7JlznP0G7JrTPXLYRcAU5CSLhc — verify it before your first connect.

Add nix build target and README 1328429 · on 13284292baaf02985a0f100766b934a53737c51d · Romain Gautier · yesterday
flake.nix · 34 lines · 790 BNix Blame HistoryRaw
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{
  description = "mykiwi.blog dev shell";

  inputs.multiverse.url = "github:fzakaria/nixpkgs-multiverse";

  outputs = { self, multiverse }:
    let
      system = "x86_64-linux";
      mv = multiverse.multiverse.${system};
      hugoVersion = "0.166.0";
      hugo = mv.version "hugo" hugoVersion;
    in
    {
      packages.${system}.default = mv.tip.stdenvNoCC.mkDerivation {
        name = "mykiwi-blog";
        src = ./blog;
        nativeBuildInputs = [ hugo ];
        buildPhase = "hugo --minify --destination $out";
        dontInstall = true;
      };

      devShells.${system}.default = mv.tip.mkShell {
        name = "mykiwi-blog";

        packages = [
          hugo
        ];

        shellHook = ''
          echo "Hugo $(hugo version)"
        '';
      };
    };
}