Skip to content

Commit cf06cda

Browse files
committed
Update nix stuff
1 parent fc265f1 commit cf06cda

File tree

5 files changed

+32
-26
lines changed

5 files changed

+32
-26
lines changed

flake.lock

Lines changed: 20 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@
124124
name = "codespell";
125125
entry = "${pkgsFor.${system}.codespell}/bin/codespell -w --ignore-words-list=delet --skip=frontend/src/lib/generated/**,frontend/pnpm-lock.yaml,frontend/package.json";
126126
};
127-
nixfmt-rfc-style.enable = true;
127+
nixfmt.enable = true;
128128
};
129129
};
130130
});

nix/build_system_overlays.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{ self, pkgs }:
22
final: prev:
33
let
4-
version_string = "0.4.2";
4+
version_string = "0.6.0";
55
inherit (final) resolveBuildSystem;
66
inherit (builtins) mapAttrs;
77

nix/derivation_frontend_files.nix

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
lib,
55
nodejs_24,
66
pnpm_10,
7+
pnpmConfigHook,
8+
fetchPnpmDeps,
79
writeShellScriptBin,
810

911
#needs to be supplied explicitly
@@ -12,7 +14,7 @@
1214

1315
stdenv.mkDerivation (finalAttrs: {
1416
pname = "project_W_frontend";
15-
version = "0.4.2";
17+
version = "0.6.0";
1618

1719
src = lib.fileset.toSource {
1820
root = ../frontend;
@@ -21,7 +23,8 @@ stdenv.mkDerivation (finalAttrs: {
2123

2224
nativeBuildInputs = [
2325
nodejs_24
24-
pnpm_10.configHook
26+
pnpm_10
27+
pnpmConfigHook
2528
];
2629

2730
buildInputs = [
@@ -34,10 +37,10 @@ stdenv.mkDerivation (finalAttrs: {
3437
'')
3538
];
3639

37-
pnpmDeps = pnpm_10.fetchDeps {
40+
pnpmDeps = fetchPnpmDeps {
3841
inherit (finalAttrs) pname version src;
3942
fetcherVersion = 2;
40-
hash = "sha256-+2nJypUjjPwU/r9YBujO1Dj0yRNNsyJFwtXFUH59Q4w=";
43+
hash = "sha256-lYf00JGyR6TDMjMyi1GlZW7r+IFdRU9kcGjibsPGYMQ=";
4144
};
4245

4346
buildPhase = ''

nix/runner_module.nix

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ in
7878
]
7979
++ lib.optional config.services.project-W.server.enable "project-W.service";
8080
wantedBy = [ "multi-user.target" ];
81+
environment = {
82+
TORCH_FORCE_NO_WEIGHTS_ONLY_LOAD = "true";
83+
};
8184
serviceConfig = {
8285
Type = "simple";
8386
User = cfg.user;

0 commit comments

Comments
 (0)