32 lines
730 B
Nix
32 lines
730 B
Nix
{
|
|
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
|
|
'';
|
|
};
|
|
};
|
|
}
|