forked from NixOS/nixpkgs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.nix
More file actions
69 lines (60 loc) · 1.41 KB
/
Copy pathpackage.nix
File metadata and controls
69 lines (60 loc) · 1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
{
lib,
stdenv,
fetchFromGitea,
yarn-berry_3,
nodejs,
python311,
pkg-config,
libsass,
xcbuild,
nix-update-script,
}:
let
yarn-berry = yarn-berry_3;
in
stdenv.mkDerivation (finalAttrs: {
pname = "admin-fe";
version = "2.3.0-2-unstable-2025-12-07";
src = fetchFromGitea {
domain = "akkoma.dev";
owner = "AkkomaGang";
repo = "admin-fe";
rev = "a0e3b95a75367d1b5e329963a3d54f67cf59dfca";
hash = "sha256-eEAM1itUvpR57B0BseeeRuV+ZjcYiJvbdln8vleRNcc=";
# upstream repository archive fetching is broken
forceFetchGit = true;
};
offlineCache = yarn-berry.fetchYarnBerryDeps {
yarnLock = finalAttrs.src + "/yarn.lock";
hash = "sha256-YZlvIr27bHBgsQcBiayqEX07kjX6iH2Kh5wt+PQFq04=";
};
nativeBuildInputs = [
yarn-berry.yarnBerryConfigHook
yarn-berry
nodejs
pkg-config
python311
libsass
]
++ lib.optional stdenv.hostPlatform.isDarwin xcbuild;
buildPhase = ''
runHook preBuild
yarn run build:prod --offline
runHook postBuild
'';
installPhase = ''
runHook preInstall
cp -R -v dist $out
runHook postInstall
'';
passthru.updateScript = nix-update-script {
extraArgs = [ "--version=branch=stable" ];
};
meta = {
description = "Admin interface for Akkoma";
homepage = "https://akkoma.dev/AkkomaGang/akkoma-fe/";
license = lib.licenses.agpl3Only;
maintainers = with lib.maintainers; [ mvs ];
};
})