35 lines
804 B
Nix
35 lines
804 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
|
|
sassc
|
|
entr
|
|
];
|
|
in {
|
|
devShell.${system} = pkgs.mkShell {
|
|
inherit buildInputs;
|
|
};
|
|
|
|
# defaultPackage.${system} = pkgs.stdenv.mkDerivation {
|
|
# name = "arnes.space";
|
|
# src = ./.;
|
|
# inherit buildInputs;
|
|
# buildPhase = ''
|
|
# ${pkgs.nodePackages.pnpm}/bin/pnpm install
|
|
# ${pkgs.nodePackages.pnpm}/bin/pnpm build
|
|
# '';
|
|
# installPhase = ''
|
|
# mkdir $out
|
|
# cp -r _site/* $out
|
|
# '';
|
|
# };
|
|
};
|
|
}
|