ctucx.git: nixfiles

ctucx' nixfiles

commit 34e5a830e57a5da8f04aea14803339713ecd271d
parent c2e8c72ef3ff2b69a93bd26698a26d350b118016
Author: Leah (ctucx) <git@ctu.cx>
Date: Fri, 15 Nov 2024 17:40:35 +0100

pkgs: remove `masto-fe-standalone`
3 files changed, 0 insertions(+), 78 deletions(-)
D
pkgs/masto-fe-standalone/0001-public-auth.js-hardcode-instance-url.patch
|
25
-------------------------
D
pkgs/masto-fe-standalone/default.nix
|
52
----------------------------------------------------
M
pkgs/overlay.nix
|
1
-
diff --git a/pkgs/masto-fe-standalone/0001-public-auth.js-hardcode-instance-url.patch b/pkgs/masto-fe-standalone/0001-public-auth.js-hardcode-instance-url.patch
@@ -1,25 +0,0 @@
-From 40aaff52b3989ffc67a1f53f69ab5374e8780d61 Mon Sep 17 00:00:00 2001
-From: "Leah (ctucx)" <git@ctu.cx>
-Date: Wed, 25 Oct 2023 10:29:48 +0200
-Subject: [PATCH] public/auth.js: hardcode instance-url
-
----
- public/auth.js | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/public/auth.js b/public/auth.js
-index 6066b6896..d49281c72 100644
---- a/public/auth.js
-+++ b/public/auth.js
-@@ -3,7 +3,7 @@ document.addEventListener("DOMContentLoaded", async function() {
- });
- 
- async function ready() {
--  const domain = localStorage.getItem('domain');
-+  const domain = "fedi.ctu.cx";
-   let accessToken = localStorage.getItem(`access_token`);
- 
-   if (domain) document.getElementById('instance').value = domain;
--- 
-2.40.1
-
diff --git a/pkgs/masto-fe-standalone/default.nix b/pkgs/masto-fe-standalone/default.nix
@@ -1,51 +0,0 @@
-{ applyPatches, fetchgit, fetchYarnDeps, lib, stdenv, nodejs, yarn, yarn2nix-moretea, ... }:
-
-stdenv.mkDerivation rec {
-  pname   = "mastoFE-standalone";
-  version = "0.0.0-${builtins.substring 0 6 rev}";
-  rev     = "3962700726f58d946d5a6eed9e9bea63b8c2eb04";
-
-  src = applyPatches {
-    src = fetchgit {
-      url = "https://iceshrimp.dev/iceshrimp/masto-fe-standalone";
-      inherit rev;
-      sha256 = "sha256-ed6qb5IiqHQEtGHbexqivf+x4aF1JYBZKPKtG5Ao6Gg";
-    };
-    patches = [
-      ./0001-public-auth.js-hardcode-instance-url.patch
-    ];
-  };
-
-  yarnOfflineCache = fetchYarnDeps {
-    yarnLock = "${src}/yarn.lock";
-    hash = "sha256-ddEx2aBshkq83zcycOHUqg/CteCJTiE0jb3LCZdj5Z8=";
-  };
-
-  nativeBuildInputs = [
-    nodejs
-    yarn
-    yarn2nix-moretea.fixup_yarn_lock
-  ];
-
-  configurePhase = ''
-    export HOME=$(mktemp -d)
-  '';
-
-  buildPhase = ''
-    export NODE_OPTIONS=--openssl-legacy-provider
-
-    yarn config --offline set yarn-offline-mirror ${yarnOfflineCache}
-    fixup_yarn_lock yarn.lock
-    yarn install --offline \
-      --frozen-lockfile \
-      --ignore-engines --ignore-scripts
-    patchShebangs .
-
-    yarn build:production
-  '';
-
-  installPhase = ''
-    cp -R ./public $out
-  '';
-
-}-
\ No newline at end of file
diff --git a/pkgs/overlay.nix b/pkgs/overlay.nix
@@ -19,7 +19,6 @@ final: prev:
   mbusd                    = final.callPackage ./mbusd.nix {};
   homebridge               = final.callPackage ./homebridge {};
   agenix                   = final.callPackage ./agenix {};
-  mastoFE-standalone       = final.callPackage ./masto-fe-standalone {};
 
   usbtan-cli               = final.callPackage ./usbtan-cli {};
   rofi-iwd-wifi-menu       = final.callPackage ./rofi-iwd-wifi-menu.nix {};