31 lines
749 B
Nix
31 lines
749 B
Nix
{ stdenv, lib, autoPatchelfHook }:
|
|
with lib;
|
|
let
|
|
in
|
|
stdenv.mkDerivation rec {
|
|
pname = "gotosocial-bin";
|
|
version = "0.9.0-rc1";
|
|
|
|
src = builtins.fetchurl {
|
|
url = "https://github.com/superseriousbusiness/gotosocial/releases/download/v${version}/gotosocial_${version}_linux_amd64.tar.gz";
|
|
sha256 = "1liz4avmqlnsb0ry5qzha5rsa5g81jd755ppl8yx8cpiyrs7lj8w";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|