Skip to content

Commit b6f77b8

Browse files
Updates (#290)
1 parent e29de6d commit b6f77b8

File tree

8 files changed

+1758
-1423
lines changed

8 files changed

+1758
-1423
lines changed

.envrc

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
#!/usr/bin/env bash
2-
32
if type -P lorri &>/dev/null; then
43
eval "$(lorri direnv)"
5-
else
6-
echo 'while direnv evaluated .envrc, could not find the command "lorri" [https://github.com/nix-community/lorri]'
7-
use nix
4+
elif type -P nix &>/dev/null; then
5+
use flake
86
fi

.github/workflows/flake-build.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
strategy:
1616
fail-fast: false
1717
matrix:
18-
target: ["25.05", "unstable"]
18+
target: ["25.11", "unstable"]
1919
os: ["ubuntu", "macos"]
2020

2121
runs-on: ${{ matrix.os }}-latest

.github/workflows/pages.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ jobs:
3939

4040
- name: Build search
4141
run: nix build -L github:NuschtOS/search.nuschtos.de --override-input search .
42+
--override-input nixpkgs $(jq -r '"github:" + .nodes.nixpkgs.locked.owner + "/" + .nodes.nixpkgs.locked.repo + "/" + .nodes.nixpkgs.locked.rev' flake.lock)
4243

4344
- uses: nicknovitski/nix-develop@v1
4445

flake.lock

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

nix/frontend.nix

Lines changed: 26 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,25 @@
1-
{ callPackage, callPackages, path, lib, stdenv, nodejs, emptyDirectory, baseHref ? "/", title ? "NuschtOS Search", data ? emptyDirectory }:
1+
{
2+
callPackage,
3+
emptyDirectory,
4+
fetchPnpmDeps,
5+
lib,
6+
nodejs,
7+
path,
8+
pnpmConfigHook,
9+
stdenv,
10+
11+
baseHref ? "/",
12+
title ? "NuschtOS Search",
13+
data ? emptyDirectory,
14+
}:
215

316
let
417
manifest = lib.importJSON ../package.json;
518
# pin pnpm version to avoid hash mismatches with differing pnpm versions
619
# on nixos stable and unstable
7-
pnpm' = callPackage (path + "/pkgs/development/tools/pnpm/generic.nix") {
8-
version = "10.18.0";
9-
hash = "sha256-OWej7+KQnfMF/sS4M6ME38oXw4C2u3dnL02sTyzdN4g=";
10-
};
11-
pnpm = pnpm' // {
12-
passthru = pnpm'.passthru // {
13-
inherit (callPackages (path + "/pkgs/development/tools/pnpm/fetch-deps") {
14-
pnpm = pnpm';
15-
}) fetchDeps configHook;
16-
};
20+
pnpm = callPackage (path + "/pkgs/development/tools/pnpm/generic.nix") {
21+
version = "10.26.1";
22+
hash = "sha256-6ObkmRKPaAT1ySIjzR8uP2JVcQLAxuJUzJm7KqIpu/k=";
1723
};
1824
in
1925
stdenv.mkDerivation (finalAttrs: {
@@ -31,13 +37,18 @@ stdenv.mkDerivation (finalAttrs: {
3137
ln -s ${data}/{meta,index.ixx} public
3238
'';
3339

34-
pnpmDeps = pnpm.fetchDeps {
40+
pnpmDeps = fetchPnpmDeps {
3541
inherit (finalAttrs) pname version src;
36-
fetcherVersion = 2;
37-
hash = "sha256-MiGxy4E9tlpUVxUGWwtjwoGeeQw1mmq5NwonkFUZP0Y=";
42+
inherit pnpm;
43+
fetcherVersion = 3;
44+
hash = "sha256-qxtD5/fdS35z4DY2kaTwLlyhDBsHWSzn4aQ4861twzA=";
3845
};
3946

40-
nativeBuildInputs = [ nodejs pnpm.configHook ];
47+
nativeBuildInputs = [
48+
nodejs
49+
pnpm
50+
(pnpmConfigHook.override { inherit pnpm; })
51+
];
4152

4253
__darwinAllowLocalNetworking = true;
4354

package.json

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -13,32 +13,32 @@
1313
},
1414
"private": true,
1515
"dependencies": {
16-
"@angular/common": "^20.3.7",
17-
"@angular/compiler": "^20.3.7",
18-
"@angular/core": "^20.3.7",
19-
"@angular/forms": "^20.3.7",
20-
"@angular/platform-browser": "^20.3.7",
21-
"@angular/platform-server": "^20.3.7",
22-
"@angular/router": "^20.3.7",
23-
"@angular/ssr": "^20.3.7",
24-
"@feel/form": "^0.2.3",
25-
"@feel/style": "^0.2.3",
16+
"@angular/common": "^21.0.8",
17+
"@angular/compiler": "^21.0.8",
18+
"@angular/core": "^21.0.8",
19+
"@angular/forms": "^21.0.8",
20+
"@angular/platform-browser": "^21.0.8",
21+
"@angular/platform-server": "^21.0.8",
22+
"@angular/router": "^21.0.8",
23+
"@angular/ssr": "^21.0.5",
24+
"@feel/form": "^0.2.4",
25+
"@feel/style": "^0.2.4",
2626
"@fontsource/dm-mono": "^5.2.7",
2727
"@fontsource/dm-sans": "^5.2.8",
2828
"@nuschtos/fixx": "^0.1.1",
29-
"express": "^5.1.0",
29+
"express": "^5.2.1",
3030
"rxjs": "~7.8.2",
3131
"tslib": "^2.8.1",
3232
"zone.js": "~0.15.1"
3333
},
3434
"devDependencies": {
35-
"@angular/build": "^20.3.7",
36-
"@angular/cli": "^20.3.7",
37-
"@angular/compiler-cli": "^20.3.7",
38-
"@types/express": "^5.0.5",
39-
"@types/jasmine": "~5.1.12",
40-
"@types/node": "^22.18.13",
41-
"jasmine-core": "~5.12.0",
35+
"@angular/build": "^21.0.5",
36+
"@angular/cli": "^21.0.5",
37+
"@angular/compiler-cli": "^21.0.8",
38+
"@types/express": "^5.0.6",
39+
"@types/jasmine": "~5.1.14",
40+
"@types/node": "^22.19.5",
41+
"jasmine-core": "~5.12.1",
4242
"karma": "~6.4.4",
4343
"karma-chrome-launcher": "~3.2.0",
4444
"karma-coverage": "~2.2.1",

0 commit comments

Comments
 (0)