Commit Graph

31 Commits

Author SHA1 Message Date
lucasew
4527cad2dc lemmy: follow packaging and module guidelines
Drop the module-level `with lib`. Require settings.hostname
instead of defaulting a string option to null. Fix package
meta.description and remove unused derivation attrs.

Assisted-by: Grok Build (xAI Grok 4.6)
2026-08-10 10:05:14 -03:00
lucasew
b51748b64a lemmy: add lucasew and NGI team as maintainers
Assisted-by: Grok Build (xAI Grok 4.6)
2026-08-10 10:05:13 -03:00
Robert Schütz
dc50dcfdea lemmy-ui: use pnpm_11 2026-06-26 22:50:07 -07:00
Aliaksandr
53f4380bd6 lemmy-ui: migrate from fetcherVersion = 1 to fetcherVersion = 3 2026-02-26 21:30:13 +02:00
Sefa Eyeoglu
65b04e5fb8 treewide: migrate to fetchPnpmDeps and pnpmConfigHook
This moves all packages to the new top-level attributes introduced
previously.

This doesn't cause any rebuilds.

Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2025-12-18 12:24:09 +01:00
Niklas Korz
72bdfe866b lemmy-ui: fix asset URLs
As `fetchFromGitHub` does not preserve the `.git` directory,
lemmy-ui fails to derive the value for its `COMMIT_HASH` variable
during the build.
The package previously (and mistakenly) assumed that `src.rev`
would somehow return the commit hash and not the version.
Fortunately, we do not need to know the precise commit rev.
This value is only used to generate the templated URLs without
further processing (and is also only injected for cache invalidation).
2025-11-23 20:28:25 +01:00
kashw2
a92c0fa8f6 lemmy-ui: modernize 2025-11-08 12:27:45 +10:00
Sefa Eyeoglu
a8c9a2aa3e treewide: adjust pnpm.fetchDeps parameter order
It is more common to specify hash as the last attribute of fetcher
function args. Let's move fetcherVersion right above hash for all
occurrences.

Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2025-07-15 15:09:16 +02:00
Gutyina Gergő
09a31a6397 treewide: set pnpm.fetchDeps fetcherVersion to 1 2025-07-14 11:51:34 +02:00
Winter
a19cd4ffb1 Revert "treewide: replace rev with tag"
This reverts commit 65a333600d.

This wasn't tested for correctness with something like fodwatch [0],
and should not have been (self-)merged so quickly, especially without
further review.

It also resulted in the breakage of at least one package [1] (and that's
the one we know of and was caught).

A few packages that were updated in between this commit and this revert
were not reverted back to using `rev`, but other than that, this is a
1:1 revert.

[0]: https://codeberg.org/raphaelr/fodwatch
[1]: https://github.com/NixOS/nixpkgs/pull/396904 / 758551e458
2025-04-08 02:57:25 -04:00
Pol Dellaiera
65a333600d treewide: replace rev with tag 2025-04-07 16:57:22 +02:00
Silvan Mosberger
4f0dadbf38 treewide: format all inactive Nix files
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.

Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.

A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.

This commit was automatically created and can be verified using

    nix-build a08b3a4d19.tar.gz \
      --argstr baseRev b32a094368
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:26:33 +01:00
marius david
efde7f61a7 lemmy-ui: properly replace the vips dependancy 2024-08-21 22:13:35 +02:00
George Shammas
e67ce8d490 Lemmy 0.19.3 -> 0.19.5 2024-07-08 20:29:04 -04:00
adisbladis
c24958f4c7 maintainers: Remove adisbladis as maintainer from various packages
These are a handful of packages I no longer use or/and have lost interest in.
2023-12-27 23:13:50 +13:00
K900
82233e8120 lemmy-ui: add missed build dependency 2023-09-28 12:29:58 +00:00
happysalada
676fe5e01b lemmy: fix ui commit_hash path 2023-08-27 20:44:10 +08:00
Theodore Ni
4fb8ca7420 lemmy-server, lemmy-ui: adapt update script to new nix-prefetch-github 2023-07-18 18:16:16 -07:00
adisbladis
061d5e208c lemmy: Rewrite updater in Python
When trying to refactor the updater to also support release candidates
I found it to become very messy when I wanted reusable sections
and accessing data members returned by the Github API.

Python is a more competent programming language that more people in
the nix community know how to use.
2023-07-12 15:29:40 +12:00
adisbladis
3a5176a1ff lemmy-{server,ui}: add adisbladis as maintainer 2023-07-08 13:59:30 +12:00
Matej Cotman
2ba6d6fb94 lemmy-ui: write version to correct file 2023-06-27 16:24:23 +12:00
Matej Cotman
4b789ef027 lemmy: build sharp 2023-06-27 16:24:23 +12:00
adisbladis
adb66130e7 lemmy-ui: set meta.platforms to nodejs.meta.platforms
lemmy-ui should run everywhere that nodejs does.
2023-06-14 09:24:56 -04:00
Artturin
0734f54ef2 treewide: move pkg-config, autoreconfHook, intltool to nativeBuildInputs
found with nixpkgs-lint
2022-09-26 17:53:26 +03:00
Brian Leung
cbf8e91772 nixos/tests/lemmy: init
Co-authored-by: Ctem <c@ctem.me>
Co-authored-by: cab <cab404@mailbox.org>
Co-authored-by: a-kenji <aks.kenji@protonmail.com>
Co-authored-by: Shahar Dawn Or <mightyiampresence@gmail.com>
Co-authored-by: Matthias Meschede <MMesch@users.noreply.github.com>
Co-authored-by: Ilan Joselevich <personal@ilanjoselevich.com>
2022-09-02 05:55:11 -04:00
happysalada
8d8a17f889 lemmy: 0.12.2 -> 0.13.3
lemmy: update update.sh to include package.json

lemmy: use commited package.json
2021-11-01 10:42:30 +09:00
happysalada
f1d3cdcf58 lemmy: use pin.json to prepare for update script
lemmy: add initial update script

lemmy: remove use of upstream package.json

lemmy: add update script

lemmy: fixes

lemmy: use importJSON

lemmy: use correct import json ref
2021-11-01 10:42:30 +09:00
happysalada
9a3e6e2253 lemmy-ui: use fetchyarndeps
lemmy: remove yarn.nix
2021-11-01 10:42:30 +09:00
Bill Ewanick
cc3b147ed1 nixos/lemmy: init
Co-authored-by: Raphael Megzari <raphael@megzari.com>
2021-10-06 21:02:51 +09:00
happysalada
5e7aab5982 lemmy-ui: add static assets folder to out 2021-10-03 14:51:06 +09:00
Bill Ewanick
62f24d0c57 lemmy-ui: init at 0.12.2 2021-09-16 10:26:10 -07:00