Initial commit
This commit is contained in:
commit
9667e184fb
8 changed files with 2380 additions and 0 deletions
32
flake.nix
Normal file
32
flake.nix
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
{
|
||||
description = "arnes.space dev and build environment";
|
||||
inputs.nixpkgs.url = github:NixOS/nixpkgs;
|
||||
|
||||
outputs = { self, nixpkgs }:
|
||||
let
|
||||
system = "x86_64-linux";
|
||||
pkgs = import nixpkgs { inherit system; };
|
||||
lib = pkgs.lib;
|
||||
buildInputs = with pkgs; [
|
||||
nodejs-16_x
|
||||
nodePackages.pnpm
|
||||
];
|
||||
in {
|
||||
devShell.${system} = pkgs.mkShell {
|
||||
inherit buildInputs;
|
||||
};
|
||||
|
||||
defaultPackage.${system} = pkgs.stdenv.mkDerivation {
|
||||
name = "arnes.space";
|
||||
src = ./.;
|
||||
inherit buildInputs;
|
||||
buildPhase = ''
|
||||
${pkgs.nodePackages.pnpm}/bin/pnpx @11ty/eleventy --input=content
|
||||
'';
|
||||
installPhase = ''
|
||||
mkdir $out
|
||||
cp -r _site/* $out
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue