-{ lib, mkYarnPackage, libsass, nodejs, python3, pkg-config
-, fetchFromGitHub, fetchYarnDeps, nixosTests }:
+{ lib, mkYarnPackage, libsass, nodejs, python3, pkg-config, fetchFromGitHub
+, fetchYarnDeps, nixosTests, vips, nodePackages }:
let
pinData = lib.importJSON ./pin.json;
rm build/config.gypi
'';
};
+ sharp = {
+ nativeBuildInputs = [ pkg-config nodePackages.semver ];
+ buildInputs = [ vips ];
+ postInstall = ''
+ yarn --offline run install
+ '';
+ };
};
name = "lemmy-ui";
- version = pinData.version;
+ version = pinData.uiVersion;
src = fetchFromGitHub {
owner = "LemmyNet";
sha256 = pinData.uiSha256;
};
- patches = [ ./disable-sharp.patch ];
in mkYarnPackage {
- inherit src pkgConfig name version patches;
+ inherit src pkgConfig name version;
extraBuildInputs = [ libsass ];
export HOME=$PWD/yarn_home
ln -sf $PWD/node_modules $PWD/deps/lemmy-ui/
+ echo 'export const VERSION = "${version}";' > $PWD/deps/lemmy-ui/src/shared/version.ts
yarn --offline build:prod
'';