blog-vue/flake.nix

29 lines
749 B
Nix
Raw Normal View History

2024-07-13 22:37:36 +02:00
{
description = "My blog, now on vuejs";
inputs = {
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (sys:
let pkgs = import nixpkgs { system = sys; };
deps = [ pkgs.nodejs ];
package = pkgs.buildNpmPackage {
name = "rachel-blog-vue";
src = ./.;
npmBuildScript = "build-only";
npmDepsHash = "sha256-2uFSgj7CYosjonqHhtKtuKHa1WcWjj0RyDwI4oi16tw=";
installPhase = ''
mv ./dist $out
'';
};
in {
packages.default = package;
devShells.default = pkgs.mkShell {
packages = deps;
};
}
);
}