Loading pkgs/by-name/re/readeck/package.nix 0 → 100644 +92 −0 Original line number Diff line number Diff line { fetchFromGitea, fetchNpmDeps, buildGoModule, nodejs, npmHooks, lib, }: let file-compose = buildGoModule { 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 buildGoModule rec { pname = "readeck"; version = "0.17.1"; src = fetchFromGitea { domain = "codeberg.org"; owner = "readeck"; repo = "readeck"; tag = version; hash = "sha256-+GgjR1mxD93bFNaLeDuEefPlQEV9jNgFIo8jTAxphyo="; }; nativeBuildInputs = [ nodejs npmHooks.npmConfigHook ]; npmRoot = "web"; NODE_PATH = "$npmDeps"; preBuild = '' make web-build ${file-compose}/bin/file-compose -format json docs/api/api.yaml docs/assets/api.json go run ./tools/docs docs/src docs/assets ''; 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-7fRSkXKAMEC7rFmSF50DM66SVhV68g93PMBjrtkd9/E="; }; vendorHash = "sha256-O/ZrpT6wTtPwBDUCAmR0XHRgQmd46/MPvWNE0EvD3bg="; 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://github.com/readeck/readeck/releases/tag/${version}"; license = lib.licenses.agpl3Only; maintainers = with lib.maintainers; [ julienmalka ]; }; } Loading
pkgs/by-name/re/readeck/package.nix 0 → 100644 +92 −0 Original line number Diff line number Diff line { fetchFromGitea, fetchNpmDeps, buildGoModule, nodejs, npmHooks, lib, }: let file-compose = buildGoModule { 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 buildGoModule rec { pname = "readeck"; version = "0.17.1"; src = fetchFromGitea { domain = "codeberg.org"; owner = "readeck"; repo = "readeck"; tag = version; hash = "sha256-+GgjR1mxD93bFNaLeDuEefPlQEV9jNgFIo8jTAxphyo="; }; nativeBuildInputs = [ nodejs npmHooks.npmConfigHook ]; npmRoot = "web"; NODE_PATH = "$npmDeps"; preBuild = '' make web-build ${file-compose}/bin/file-compose -format json docs/api/api.yaml docs/assets/api.json go run ./tools/docs docs/src docs/assets ''; 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-7fRSkXKAMEC7rFmSF50DM66SVhV68g93PMBjrtkd9/E="; }; vendorHash = "sha256-O/ZrpT6wTtPwBDUCAmR0XHRgQmd46/MPvWNE0EvD3bg="; 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://github.com/readeck/readeck/releases/tag/${version}"; license = lib.licenses.agpl3Only; maintainers = with lib.maintainers; [ julienmalka ]; }; }