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

@ -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
'';
}