2023-05-04 12:34:00 +00:00
|
|
|
{ stdenv, lib, autoPatchelfHook }:
|
|
|
|
with lib;
|
|
|
|
let
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "gotosocial-bin";
|
2023-08-15 13:23:54 +00:00
|
|
|
version = "0.11.0";
|
2023-05-04 12:34:00 +00:00
|
|
|
|
|
|
|
src = builtins.fetchurl {
|
|
|
|
url = "https://github.com/superseriousbusiness/gotosocial/releases/download/v${version}/gotosocial_${version}_linux_amd64.tar.gz";
|
2023-08-15 13:23:54 +00:00
|
|
|
sha256 = "sha256:012qm10x0vz9ir91742c1nhnxv7y4dfxjr9031h8hf1hf463a25h";
|
2023-05-17 21:41:21 +00:00
|
|
|
# sha256 = fakeSha256;
|
2023-05-04 12:34:00 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ autoPatchelfHook ];
|
|
|
|
|
|
|
|
sourceRoot = ".";
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -m755 -D gotosocial $out/bin/gotosocial
|
|
|
|
mkdir $out/share
|
|
|
|
cp -r web $out/share/web
|
|
|
|
cp -r example $out/share/example
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://docs.gotosocial.org";
|
|
|
|
description = "GoToSocial network";
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|