iceshrimp: does not fail to build but doesn't work

This commit is contained in:
twoneis 2025-03-13 22:43:18 +01:00
parent 82742e291d
commit d69f3e0bef
4 changed files with 39 additions and 17 deletions

View file

@ -15,10 +15,11 @@
blobhaj = pkgs.callPackage ./blobhaj.nix {}; blobhaj = pkgs.callPackage ./blobhaj.nix {};
blobhajFlags = pkgs.callPackage ./blobhajFlags.nix {}; blobhajFlags = pkgs.callPackage ./blobhajFlags.nix {};
favicon = pkgs.callPackage ./favicon.nix {}; favicon = pkgs.callPackage ./favicon.nix {};
iceshrimp = pkgs.callPackage ./iceshrimp/iceshrimp.nix {}; in {
in imports = [
mkIf cfg.enable { ./iceshrimp
environment.systemPackages = [iceshrimp]; ];
config = mkIf cfg.enable {
services.akkoma = { services.akkoma = {
enable = true; enable = true;
frontends.primary = { frontends.primary = {
@ -74,4 +75,5 @@ in
forceSSL = true; forceSSL = true;
}; };
}; };
} };
}

View file

@ -1,2 +1,13 @@
{...}: { {
} lib,
pkgs,
config,
...
}: let
inherit (lib) mkIf;
cfg = config.conf.fedi;
iceshrimp = pkgs.callPackage ./iceshrimp.nix {};
in
mkIf cfg.enable {
environment.systemPackages = [iceshrimp];
}

View file

@ -1,21 +1,31 @@
{ {
stdenv, stdenv,
fetchFromGitea, fetchurl,
zstd,
gnutar,
}: let }: let
version = "v2025.1-beta5.patch2.security1"; version = "v2025.1-beta5.patch2.security1";
in in
stdenv.mkDerivation { stdenv.mkDerivation {
name = "iceshrimp"; name = "iceshrimp";
src = fetchFromGitea { src = fetchurl {
domain = "https://iceshrimp.dev"; url = "https://iceshrimp.dev/iceshrimp/Iceshrimp.NET/releases/download/v2025.1-beta5.patch2.security1/Iceshrimp.NET-${version}-linux-amd64-glibc.tar.zst";
owner = "iceshrimp"; hash = "sha256-Uwstie81M3kM9CjukIG+wXpxp91uTuXFMB/fZlFWsMk=";
repo = "Iceshrimp.NET";
rev = version;
hash = "";
}; };
installPhase = '' nativeBuildInputs = [
zstd
gnutar
];
unpackPhase = ''
runHook preUnpack
mkdir -p $out mkdir -p $out
make
tar xf $src
cp -r * $out
runHook postUnpack
''; '';
} }

View file

@ -1 +0,0 @@
/nix/store/q9acxpqrgfwrra5agyzx8q6lic5lwjki-iceshrimp.drv