Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
97 lines
2.2 KiB
Nix
97 lines
2.2 KiB
Nix
{
|
|
lib,
|
|
fetchFromGitea,
|
|
fetchNpmDeps,
|
|
buildGo125Module,
|
|
nodejs,
|
|
npmHooks,
|
|
python3,
|
|
}:
|
|
|
|
let
|
|
file-compose = buildGo125Module {
|
|
pname = "file-compose";
|
|
version = "unstable-2023-10-21";
|
|
|
|
src = fetchFromGitea {
|
|
domain = "codeberg.org";
|
|
owner = "readeck";
|
|
repo = "file-compose";
|
|
rev = "afa938655d412556a0db74b202f9bcc1c40d8579";
|
|
hash = "sha256-rMANRqUQRQ8ahlxuH1sWjlGpNvbReBOXIkmBim/wU2o=";
|
|
};
|
|
|
|
vendorHash = "sha256-Qwixx3Evbf+53OFeS3Zr7QCkRMfgqc9hUA4eqEBaY0c=";
|
|
};
|
|
in
|
|
|
|
buildGo125Module rec {
|
|
pname = "readeck";
|
|
version = "0.20.1";
|
|
|
|
src = fetchFromGitea {
|
|
domain = "codeberg.org";
|
|
owner = "readeck";
|
|
repo = "readeck";
|
|
tag = version;
|
|
hash = "sha256-7ZLEAMma0eLrcCbwbeK8EPDY1+ZOJy3i4Rz+obDsuko=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
nodejs
|
|
npmHooks.npmConfigHook
|
|
(python3.withPackages (ps: with ps; [ babel ]))
|
|
];
|
|
|
|
npmRoot = "web";
|
|
|
|
NODE_PATH = "$npmDeps";
|
|
|
|
preBuild = ''
|
|
make web-build
|
|
python3 locales/messages.py compile
|
|
${file-compose}/bin/file-compose -format json docs/api/api.yaml docs/assets/api.json
|
|
go run ./tools/docs docs/src docs/assets
|
|
'';
|
|
|
|
subPackages = [ "." ];
|
|
|
|
tags = [
|
|
"netgo"
|
|
"osusergo"
|
|
"sqlite_omit_load_extension"
|
|
"sqlite_foreign_keys"
|
|
"sqlite_json1"
|
|
"sqlite_fts5"
|
|
"sqlite_secure_delete"
|
|
];
|
|
|
|
ldflags = [
|
|
"-X"
|
|
"codeberg.org/readeck/readeck/configs.version=${version}"
|
|
];
|
|
|
|
overrideModAttrs = oldAttrs: {
|
|
# Do not add `npmConfigHook` to `goModules`
|
|
nativeBuildInputs = lib.remove npmHooks.npmConfigHook oldAttrs.nativeBuildInputs;
|
|
# Do not run `preBuild` when building `goModules`
|
|
preBuild = null;
|
|
};
|
|
|
|
npmDeps = fetchNpmDeps {
|
|
src = "${src}/web";
|
|
hash = "sha256-/imn3IoRh6aoQFNH0yMmgYNktfkN647H4KfpcVVC728=";
|
|
};
|
|
|
|
vendorHash = "sha256-8SdDuMsFKpEhJ3qnH/9nly54A/PJCCh5xIyKNLDs740=";
|
|
|
|
meta = {
|
|
description = "Web application that lets you save the readable content of web pages you want to keep forever";
|
|
mainProgram = "readeck";
|
|
homepage = "https://readeck.org/";
|
|
changelog = "https://codeberg.org/readeck/readeck/releases/tag/${version}";
|
|
license = lib.licenses.agpl3Only;
|
|
maintainers = with lib.maintainers; [ julienmalka ];
|
|
};
|
|
}
|