Unverified Commit 09e917c6 authored by Sefa Eyeoglu's avatar Sefa Eyeoglu
Browse files

vencord: reformat using nixfmt

parent 29bc58a3
Loading
Loading
Loading
Loading
+37 −25
Original line number Diff line number Diff line
{ stdenv
, fetchFromGitHub
, lib
, git
, nodejs
, pnpm
, esbuild
, nix-update-script
, buildWebExtension ? false
{
  stdenv,
  fetchFromGitHub,
  lib,
  git,
  nodejs,
  pnpm,
  esbuild,
  nix-update-script,
  buildWebExtension ? false,
}:
stdenv.mkDerivation (finalAttrs: {
  pname = "vencord";
@@ -34,7 +35,9 @@ stdenv.mkDerivation (finalAttrs: {
  ];

  env = {
    ESBUILD_BINARY_PATH = lib.getExe (esbuild.overrideAttrs (final: _: {
    ESBUILD_BINARY_PATH = lib.getExe (
      esbuild.overrideAttrs (
        final: _: {
          version = "0.15.18";
          src = fetchFromGitHub {
            owner = "evanw";
@@ -43,7 +46,9 @@ stdenv.mkDerivation (finalAttrs: {
            hash = "sha256-b9R1ML+pgRg9j2yrkQmBulPuLHYLUQvW+WTyR/Cq6zE=";
          };
          vendorHash = "sha256-+BfxCyg0KkDQpHt/wycy/8CTG6YBA/VJvJFhhzUnSiQ=";
    }));
        }
      )
    );
    VENCORD_REMOTE = "${finalAttrs.src.owner}/${finalAttrs.src.repo}";
  };

@@ -57,9 +62,12 @@ stdenv.mkDerivation (finalAttrs: {
  '';

  installPhase =
    if buildWebExtension then ''
    if buildWebExtension then
      ''
        cp -r dist/chromium-unpacked/ $out
    '' else ''
      ''
    else
      ''
        cp -r dist/ $out
      '';

@@ -69,6 +77,10 @@ stdenv.mkDerivation (finalAttrs: {
    description = "Vencord web extension";
    homepage = "https://github.com/Vendicated/Vencord";
    license = licenses.gpl3Only;
    maintainers = with maintainers; [ FlafyDev NotAShelf Scrumplex ];
    maintainers = with maintainers; [
      FlafyDev
      NotAShelf
      Scrumplex
    ];
  };
})