fix nix dev enviroment

This commit is contained in:
April John 2023-07-26 22:27:59 +02:00
parent 2261219a27
commit 3b37057eb9
3 changed files with 17 additions and 17 deletions

View File

@ -27,7 +27,7 @@ COPY packages/backend/native-utils/npm/linux-x64-musl/package.json packages/back
COPY packages/backend/native-utils/npm/linux-arm64-musl/package.json packages/backend/native-utils/npm/linux-arm64-musl/package.json COPY packages/backend/native-utils/npm/linux-arm64-musl/package.json packages/backend/native-utils/npm/linux-arm64-musl/package.json
# Configure corepack and pnpm, and install dev mode dependencies for compilation # Configure corepack and pnpm, and install dev mode dependencies for compilation
RUN corepack enable && corepack prepare pnpm@latest --activate && pnpm i --frozen-lockfile RUN corepack enable && corepack prepare pnpm@latest --activate && pnpm i
# Copy in the rest of the native-utils rust files # Copy in the rest of the native-utils rust files
COPY packages/backend/native-utils packages/backend/native-utils/ COPY packages/backend/native-utils packages/backend/native-utils/
@ -40,7 +40,7 @@ COPY . ./
RUN env NODE_ENV=production sh -c "pnpm run --filter '!native-utils' build && pnpm run gulp" RUN env NODE_ENV=production sh -c "pnpm run --filter '!native-utils' build && pnpm run gulp"
# Trim down the dependencies to only those for production # Trim down the dependencies to only those for production
RUN pnpm i --prod --frozen-lockfile RUN pnpm i --prod
## Runtime container ## Runtime container
FROM alpine:3.18 FROM alpine:3.18

View File

@ -8,11 +8,11 @@
"pre-commit-hooks": "pre-commit-hooks" "pre-commit-hooks": "pre-commit-hooks"
}, },
"locked": { "locked": {
"lastModified": 1690021633, "lastModified": 1690391043,
"narHash": "sha256-6C6ASG6E0GaXU2THdcNy4SZgQDHE/QC0suh40KXUaWU=", "narHash": "sha256-8x5DkOaejES6C2JYX2A3riebbJHGFHBmJ+LwxXUIIVw=",
"owner": "cachix", "owner": "cachix",
"repo": "devenv", "repo": "devenv",
"rev": "def76d0ba0d3743bdfa3a8fdb3903e0928b3c6f0", "rev": "05240861ef3ae1bbe65b1acc88e2fad7dd24a84b",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -29,11 +29,11 @@
"rust-analyzer-src": "rust-analyzer-src" "rust-analyzer-src": "rust-analyzer-src"
}, },
"locked": { "locked": {
"lastModified": 1690093235, "lastModified": 1690352427,
"narHash": "sha256-78rST3nYLd0DxWo1l0ZqHoQ+jI0bkLp+pAElC/S01rU=", "narHash": "sha256-xCH8mt9eSikYb2P1ePYK6ygk/CExDdl7skgVv4RCWf8=",
"owner": "nix-community", "owner": "nix-community",
"repo": "fenix", "repo": "fenix",
"rev": "5dc84891da35116d088496499292eebb9cd2f88b", "rev": "5980b17ea7de165699f76be5f1a20a7306fc6970",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -224,11 +224,11 @@
}, },
"nixpkgs_2": { "nixpkgs_2": {
"locked": { "locked": {
"lastModified": 1690083312, "lastModified": 1690327932,
"narHash": "sha256-I3egwgNXavad1eIjWu1kYyi0u73di/sMmlnQIuzQASk=", "narHash": "sha256-Fv7PYZxN4eo0K6zXhHG/vOc+e2iuqQ5ywDrh0yeRjP0=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "af8cd5ded7735ca1df1a1174864daab75feeb64a", "rev": "a9b47d85504bdd199e90846622c76aa0bfeabfac",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -277,11 +277,11 @@
"rust-analyzer-src": { "rust-analyzer-src": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1690057540, "lastModified": 1690216158,
"narHash": "sha256-MKGhZsFTpJH3Sq+9dGFGqOje3A6PD6fKGO92tM23zuY=", "narHash": "sha256-TUF0YoWweQj0hNHWykC1vtBQVUncARlLLPmQP9hUeME=",
"owner": "rust-lang", "owner": "rust-lang",
"repo": "rust-analyzer", "repo": "rust-analyzer",
"rev": "99718d0c8bc5aadd993acdcabc1778fc7b5cc572", "rev": "b64e5b3919b24bc784f36248e6e1f921ee7bb71b",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@ -28,7 +28,7 @@
shells = { shells = {
# The default shell, used by nix-direnv # The default shell, used by nix-direnv
default = { default = {
name = "firefish-dev-shell"; name = "iceshrimp-dev-shell";
# Add additional packages to our environment # Add additional packages to our environment
packages = [ packages = [
pkgs.nodePackages.pnpm pkgs.nodePackages.pnpm
@ -44,7 +44,7 @@
languages.javascript.package = pkgs.nodejs_18; languages.javascript.package = pkgs.nodejs_18;
# Enable stable Rust for the backend # Enable stable Rust for the backend
languages.rust.enable = true; languages.rust.enable = true;
languages.rust.version = "stable"; languages.rust.channel = "stable";
processes = { processes = {
dev-server.exec = "pnpm run dev"; dev-server.exec = "pnpm run dev";
}; };
@ -62,7 +62,7 @@
enable = true; enable = true;
package = pkgs.postgresql_12; package = pkgs.postgresql_12;
initialDatabases = [{ initialDatabases = [{
name = "firefish"; name = "iceshrimp";
}]; }];
initialScript = '' initialScript = ''
CREATE USER firefish WITH PASSWORD 'firefish'; CREATE USER firefish WITH PASSWORD 'firefish';