We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd4cff9 commit 663a7b5Copy full SHA for 663a7b5
flake.nix
@@ -12,35 +12,12 @@
12
pkgs = nixpkgs.legacyPackages.${system};
13
in
14
{
15
- # Development environment
16
devShells.default = pkgs.mkShell {
17
buildInputs = with pkgs; [
18
nodejs_20
19
yarn
20
];
21
};
22
-
23
- # Build the application
24
- packages.default = pkgs.stdenv.mkDerivation {
25
- name = "my-web-app";
26
- version = "1.0.0";
27
- src = ./src;
28
29
- buildInputs = with pkgs; [
30
- nodejs_20
31
- yarn
32
- ];
33
34
- buildPhase = ''
35
- yarn install
36
- yarn build
37
- '';
38
39
- installPhase = ''
40
- mkdir -p $out/bin
41
- cp -r dist/* $out/bin/
42
43
- };
44
}
45
);
46
-}
+}
0 commit comments