Skip to content

Commit 663a7b5

Browse files
committed
add the required devShells attribute
1 parent fd4cff9 commit 663a7b5

File tree

1 file changed

+1
-24
lines changed

1 file changed

+1
-24
lines changed

flake.nix

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -12,35 +12,12 @@
1212
pkgs = nixpkgs.legacyPackages.${system};
1313
in
1414
{
15-
# Development environment
1615
devShells.default = pkgs.mkShell {
1716
buildInputs = with pkgs; [
1817
nodejs_20
1918
yarn
2019
];
2120
};
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-
};
4421
}
4522
);
46-
}
23+
}

0 commit comments

Comments
 (0)