29 lines
749 B
Nix
29 lines
749 B
Nix
|
{
|
||
|
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;
|
||
|
};
|
||
|
}
|
||
|
);
|
||
|
}
|