nicer versioning for easier updates i think
This commit is contained in:
parent
0733f4d2d1
commit
12bc14657e
8 changed files with 68 additions and 54 deletions
|
@ -5,48 +5,47 @@
|
|||
makeWrapper,
|
||||
zstd,
|
||||
dotnetCorePackages,
|
||||
postgres,
|
||||
}: let
|
||||
version = "v2025.1-beta5.patch2.security1";
|
||||
in
|
||||
stdenv.mkDerivation {
|
||||
pname = "iceshrimp";
|
||||
version = "2025.1";
|
||||
postgresql,
|
||||
version,
|
||||
}:
|
||||
stdenv.mkDerivation {
|
||||
pname = "iceshrimp";
|
||||
version = version.version;
|
||||
|
||||
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=";
|
||||
};
|
||||
src = fetchurl {
|
||||
url = "https://iceshrimp.dev/iceshrimp/Iceshrimp.NET/releases/download/v2025.1-beta5.patch2.security1/Iceshrimp.NET-v${version.version}-linux-amd64-glibc.tar.zst";
|
||||
hash = version.hash;
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
stdenv.cc.cc.lib
|
||||
zstd
|
||||
autoPatchelfHook
|
||||
makeWrapper
|
||||
];
|
||||
nativeBuildInputs = [
|
||||
stdenv.cc.cc.lib
|
||||
zstd
|
||||
autoPatchelfHook
|
||||
makeWrapper
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
dotnetCorePackages.sdk_9_0
|
||||
postgres
|
||||
];
|
||||
buildInputs = [
|
||||
dotnetCorePackages.sdk_9_0
|
||||
postgresql
|
||||
];
|
||||
|
||||
unpackPhase = ''
|
||||
runHook preUnpack
|
||||
unpackPhase = ''
|
||||
runHook preUnpack
|
||||
|
||||
mkdir -p $out $out/lib $out/etc
|
||||
mkdir -p $out $out/lib $out/etc
|
||||
|
||||
tar xf $src
|
||||
tar xf $src
|
||||
|
||||
cp -r Iceshrimp.NET-${version}-linux-amd64-glibc/* $out/lib
|
||||
mv $out/lib/configuration.ini $out/etc
|
||||
cp -r Iceshrimp.NET-${version.version}-linux-amd64-glibc/* $out/lib
|
||||
mv $out/lib/configuration.ini $out/etc
|
||||
|
||||
runHook postUnpack
|
||||
'';
|
||||
runHook postUnpack
|
||||
'';
|
||||
|
||||
postFixup = ''
|
||||
makeWrapper $out/lib/Iceshrimp.Backend $out/bin/iceshrimp \
|
||||
--set DOTNET_ROOT ${dotnetCorePackages.sdk_9_0}/share/dotnet/ \
|
||||
--set ICESHRIMP_CONFIG $out/etc/configuration.ini \
|
||||
--set ICESHRIMP_CONFIG_OVERRIDES $out/etc/configuration.overrides.ini
|
||||
'';
|
||||
}
|
||||
postFixup = ''
|
||||
makeWrapper $out/lib/Iceshrimp.Backend $out/bin/iceshrimp \
|
||||
--set DOTNET_ROOT ${dotnetCorePackages.sdk_9_0}/share/dotnet/ \
|
||||
--set ICESHRIMP_CONFIG $out/etc/configuration.ini \
|
||||
--set ICESHRIMP_CONFIG_OVERRIDES $out/etc/configuration.overrides.ini
|
||||
'';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue