12 pinData = lib.importJSON ./pin.json;
17 stdenvNoCC.mkDerivation (finalAttrs: {
20 version = pinData.uiVersion;
22 src = with finalAttrs; fetchFromGitHub {
26 fetchSubmodules = true;
27 hash = pinData.uiHash;
35 buildInputs = [libsass vips ];
37 extraBuildInputs = [ libsass ];
38 pnpmDeps = pnpm_9.fetchDeps {
39 inherit (finalAttrs) pname version src;
40 hash = pinData.uiPNPMDepsHash;
54 # mkdir -p $out/{bin,lib/${finalAttrs.pname}}
55 # mv {dist,node_modules} $out/lib/${finalAttrs.pname}
63 cp -R ./node_modules $out
67 find $out -name libvips-cpp.so.42 -print0 | while read -d $'\0' libvips; do
68 echo replacing libvips at $libvips
70 ln -s ${lib.getLib vips}/lib/libvips-cpp.so.42 $libvips
77 passthru.updateScript = ./update.py;
78 passthru.tests.lemmy-ui = nixosTests.lemmy;
79 passthru.commit_sha = finalAttrs.src.rev;
82 description = "Building a federated alternative to reddit in rust";
83 homepage = "https://join-lemmy.org/";
84 license = licenses.agpl3Only;
85 maintainers = with maintainers; [ happysalada billewanick georgyo ];
86 inherit (nodejs.meta) platforms;