arnes.space/flake.nix
2022-02-20 17:18:19 +01:00

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
# '';
# };
};
}