Files
aurora/flake.nix

29 lines
678 B
Nix
Raw Permalink Normal View History

2023-05-18 20:20:43 +02:00
{
2023-09-23 15:16:14 +02:00
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
2023-05-18 20:20:43 +02:00
2023-09-23 15:16:14 +02:00
outputs = { self, nixpkgs }: let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
in {
devShells.${system}.default = pkgs.mkShell {
packages = with pkgs; [
nodejs_20
tree
2023-05-18 20:20:43 +02:00
];
};
2023-09-23 15:16:14 +02:00
packages.${system}.default = pkgs.buildNpmPackage {
name = "build-aurora-blog";
buildInputs = with pkgs; [
nodejs_20
];
src = ./.;
npmDepsHash = "sha256-hIfaaeKbS+Whav575OyIX1c9GoL6qks12zhHZB2w9IA=";
npmBuild = "npm run build";
installPhase = ''
mkdir $out
cp -r dist/* $out
'';
};
};
2023-05-18 20:20:43 +02:00
}