ctucx.git: nixfiles

ctucx' nixfiles

commit dd27ad42149ced6f4c9aeef721abe224e9d171b8
parent 581ae06eab84158caacf138446572687b7dd1de4
Author: Leah (ctucx) <git@ctu.cx>
Date: Fri, 15 Dec 2023 16:25:07 +0100

pkgs/gotosocial: update version (0.12.1 -> 0.13.0)
1 file changed, 12 insertions(+), 7 deletions(-)
M
pkgs/gotosocial/default.nix
|
19
++++++++++++-------
diff --git a/pkgs/gotosocial/default.nix b/pkgs/gotosocial/default.nix
@@ -1,17 +1,17 @@
-{ pkgs, applyPatches, fetchFromGitHub, mkYarnPackage, buildGoModule, lib, ffmpeg, makeWrapper, installShellFiles, ... }:
+{ applyPatches, fetchFromGitHub, mkYarnPackage, buildGo121Module, lib, ffmpeg, makeWrapper, installShellFiles, ... }:
 
-pkgs.unstable.buildGo121Module rec {
+buildGo121Module rec {
   pname   = "gotosocial";
-  version = "0.12.1-${builtins.substring 0 6 rev}";
-  rev     = "5fdc005061c773fda6e0da32abcc6f79ddee80ed";
+  version = "0.13.0-${builtins.substring 0 6 rev}";
+  rev     = "f4fcffc8b56ef73c184ae17892b69181961c15c7";
+  sha256  = "sha256-+/x3CAGF/cjK1/7fHgC8EzlGR/Xmq3aFL5Ogc/QZCpA";
 
 
   src = applyPatches {
     src = fetchFromGitHub {
       owner  = "superseriousbusiness";
       repo   = "gotosocial";
-      inherit rev;
-      sha256 = "sha256-4iNvlNjq8sQr++Z+QSY17bHxFd5bxOH4abMFEAh5W9w";
+      inherit rev sha256;
     };
     patches = [];
   };

@@ -23,14 +23,19 @@ pkgs.unstable.buildGo121Module rec {
     packageJSON = "${src}/web/source/package.json";
     yarnLock    = "${src}/web/source/yarn.lock";
 
+    configurePhase = ''
+      cp -r $node_modules node_modules
+      chmod +w -R node_modules
+    '';
+
     buildPhase = ''
       mkdir -p ./web/source ./web/assets
 
       cp -r $src/web/source/. ./web/source
       cp -r $src/web/assets/. ./web/assets
 
-
       export NODE_OPTIONS=--openssl-legacy-provider
+      node ./node_modules/ts-patch/bin/ts-patch.js install
       yarn --offline --cwd ./web/source build
     '';