updated flake to support pnpm
This commit is contained in:
parent
cf4a562d1d
commit
87780fdb99
4 changed files with 1129 additions and 1140 deletions
25
flake.nix
25
flake.nix
|
|
@ -1,15 +1,23 @@
|
|||
{
|
||||
description = "nodejs app";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "nixpkgs";
|
||||
flake-utils.url = "github:numtide/flake-utils";
|
||||
nixpkgs.url = "nixpkgs";
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, flake-utils }:
|
||||
flake-utils.lib.eachDefaultSystem (system:
|
||||
flake-utils.lib.eachDefaultSystem (system:
|
||||
let
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
pkgs = import nixpkgs {
|
||||
inherit system;
|
||||
|
||||
libraries = with pkgs;[
|
||||
overlays = [
|
||||
(final: prev: { nodejs = prev.nodejs-18_x; }) # <== Set desired node version here
|
||||
];
|
||||
};
|
||||
|
||||
libraries = with pkgs; [
|
||||
webkitgtk
|
||||
gtk3
|
||||
cairo
|
||||
|
|
@ -17,7 +25,6 @@
|
|||
glib
|
||||
dbus
|
||||
openssl_3
|
||||
librsvg
|
||||
cargo
|
||||
rustc
|
||||
];
|
||||
|
|
@ -32,9 +39,11 @@
|
|||
gtk3
|
||||
libsoup
|
||||
webkitgtk
|
||||
librsvg
|
||||
cargo
|
||||
cargo
|
||||
rustc
|
||||
nodejs
|
||||
nodePackages.pnpm
|
||||
nixpkgs-fmt
|
||||
];
|
||||
in
|
||||
{
|
||||
|
|
@ -47,4 +56,4 @@
|
|||
'';
|
||||
};
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -27,7 +27,6 @@
|
|||
"@tauri-apps/api": "^1.2.0",
|
||||
"astro": "^2.0.4",
|
||||
"nanostores": "^0.7.3",
|
||||
"postcss-ts-classnames": "^0.3.0",
|
||||
"svelte": "^3.54.0",
|
||||
"tailwindcss": "^3.0.24",
|
||||
"typescript": "^4.9.5",
|
||||
|
|
|
|||
2239
pnpm-lock.yaml
generated
2239
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load diff
|
|
@ -1,8 +1,8 @@
|
|||
{
|
||||
"$schema": "../node_modules/@tauri-apps/cli/schema.json",
|
||||
"build": {
|
||||
"beforeBuildCommand": "npm run build",
|
||||
"beforeDevCommand": "npm run dev",
|
||||
"beforeBuildCommand": "pnpm build",
|
||||
"beforeDevCommand": "pnpm dev",
|
||||
"devPath": "http://localhost:3000",
|
||||
"distDir": "../dist"
|
||||
},
|
||||
|
|
|
|||
Reference in a new issue