Set up gotosocial
This commit is contained in:
parent
4554c04549
commit
0e936ee2bb
6 changed files with 161 additions and 3 deletions
30
packages/x86_64-linux/gotosocial-bin.nix
Normal file
30
packages/x86_64-linux/gotosocial-bin.nix
Normal file
|
@ -0,0 +1,30 @@
|
|||
{ stdenv, lib, autoPatchelfHook }:
|
||||
with lib;
|
||||
let
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "gotosocial-bin";
|
||||
version = "0.8.1";
|
||||
|
||||
src = builtins.fetchurl {
|
||||
url = "https://github.com/superseriousbusiness/gotosocial/releases/download/v${version}/gotosocial_${version}_linux_amd64.tar.gz";
|
||||
sha256 = "sha256:0vfgz236s4zqcv4a8bylp5znina26nvckdk1vgxbqkdnip3mnirj";
|
||||
};
|
||||
|
||||
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;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue