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 {};
blobhajFlags = pkgs.callPackage ./blobhajFlags.nix {};
favicon = pkgs.callPackage ./favicon.nix {};
iceshrimp = pkgs.callPackage ./iceshrimp/iceshrimp.nix {};
in
mkIf cfg.enable {
environment.systemPackages = [iceshrimp];
in {
imports = [
./iceshrimp
];
config = mkIf cfg.enable {
services.akkoma = {
enable = true;
frontends.primary = {
@ -74,4 +75,5 @@ in
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,
fetchFromGitea,
fetchurl,
zstd,
gnutar,
}: let
version = "v2025.1-beta5.patch2.security1";
in
stdenv.mkDerivation {
name = "iceshrimp";
src = fetchFromGitea {
domain = "https://iceshrimp.dev";
owner = "iceshrimp";
repo = "Iceshrimp.NET";
rev = version;
hash = "";
src = fetchurl {
url = "https://iceshrimp.dev/iceshrimp/Iceshrimp.NET/releases/download/v2025.1-beta5.patch2.security1/Iceshrimp.NET-${version}-linux-amd64-glibc.tar.zst";
hash = "sha256-Uwstie81M3kM9CjukIG+wXpxp91uTuXFMB/fZlFWsMk=";
};
installPhase = ''
nativeBuildInputs = [
zstd
gnutar
];
unpackPhase = ''
runHook preUnpack
mkdir -p $out
make
tar xf $src
cp -r * $out
runHook postUnpack
'';
}

View file

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