2023-10-27 09:26:21 +00:00
|
|
|
{ stdenv, lib, fetchurl, autoPatchelfHook }:
|
2023-05-04 12:34:00 +00:00
|
|
|
with lib;
|
|
|
|
let
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "gotosocial-bin";
|
2023-10-27 09:26:21 +00:00
|
|
|
version = "0.12.1";
|
2023-05-04 12:34:00 +00:00
|
|
|
|
2023-10-27 09:26:21 +00:00
|
|
|
src = fetchurl {
|
2023-05-04 12:34:00 +00:00
|
|
|
url = "https://github.com/superseriousbusiness/gotosocial/releases/download/v${version}/gotosocial_${version}_linux_amd64.tar.gz";
|
2023-10-27 09:26:21 +00:00
|
|
|
hash = "sha256:1i9397iqabm539h0f0j91cl8pl1chglpkzzjb7g14w9bvl086i6y";
|
|
|
|
# hash = 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;
|
|
|
|
};
|
|
|
|
}
|