feat: Update npm flake snippet
This commit is contained in:
@@ -41,4 +41,12 @@
|
||||
template = builtins.readFile ./gradle.flake.nix;
|
||||
placeholders."0" = "25";
|
||||
};
|
||||
flakenpm = {
|
||||
template = builtins.readFile ./npm.flake.nix;
|
||||
placeholders = {
|
||||
"1" = "npm-app";
|
||||
"2" = "0.1.0";
|
||||
"0" = null;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -12,8 +12,8 @@
|
||||
flake-utils.lib.eachDefaultSystem (system: let
|
||||
pkgs = import nixpkgs {inherit system;};
|
||||
|
||||
name = "npm-app";
|
||||
version = "0.1.0";
|
||||
name = "<1>";
|
||||
version = "<2>";
|
||||
|
||||
buildInputs = with pkgs; [
|
||||
nodejs
|
||||
@@ -28,7 +28,7 @@
|
||||
inherit (pkgs.importNpmLock) npmConfigHook;
|
||||
|
||||
installPhase = ''
|
||||
# ...
|
||||
<0>
|
||||
'';
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user