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";
|
2024-07-15 20:19:43 +02:00
|
|
|
npmDepsHash = "sha256-rlxTMuYSPMuSwP0zhqc3pEgG0AcuUGS8lofFjR1d9L4=";
|
2024-07-13 22:37:36 +02:00
|
|
|
installPhase = ''
|
|
|
|
mv ./dist $out
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
in {
|
|
|
|
packages.default = package;
|
|
|
|
devShells.default = pkgs.mkShell {
|
2024-07-13 23:36:47 +02:00
|
|
|
shellHook = ''
|
|
|
|
PATH="node_modules/.bin:$PATH"
|
|
|
|
'';
|
2024-07-13 22:37:36 +02:00
|
|
|
packages = deps;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
);
|
|
|
|
}
|