diff options
author | Félix Baylac-Jacqué <felix@alternativebit.fr> | 2020-11-07 18:41:44 +0100 |
---|---|---|
committer | Félix Baylac-Jacqué <felix@alternativebit.fr> | 2021-01-26 18:11:38 +0100 |
commit | 2c03cf9491e1c29bd8a3777a18a20926da2119dc (patch) | |
tree | 27b8a6800e1be169a6fa930b6aab1e05332c15cf /pkgs/servers/pleroma-otp | |
parent | 50a5d4c77307e7da226294f924098d98d5c38990 (diff) | |
download | nixpkgs-2c03cf9491e1c29bd8a3777a18a20926da2119dc.tar nixpkgs-2c03cf9491e1c29bd8a3777a18a20926da2119dc.tar.gz nixpkgs-2c03cf9491e1c29bd8a3777a18a20926da2119dc.tar.bz2 nixpkgs-2c03cf9491e1c29bd8a3777a18a20926da2119dc.tar.lz nixpkgs-2c03cf9491e1c29bd8a3777a18a20926da2119dc.tar.xz nixpkgs-2c03cf9491e1c29bd8a3777a18a20926da2119dc.tar.zst nixpkgs-2c03cf9491e1c29bd8a3777a18a20926da2119dc.zip |
pleroma-otp: init at 2.2.2
Co-authored-by: flokli <flokli@flokli.de>
Diffstat (limited to 'pkgs/servers/pleroma-otp')
-rw-r--r-- | pkgs/servers/pleroma-otp/default.nix | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/pkgs/servers/pleroma-otp/default.nix b/pkgs/servers/pleroma-otp/default.nix new file mode 100644 index 00000000000..756f2fc33dc --- /dev/null +++ b/pkgs/servers/pleroma-otp/default.nix @@ -0,0 +1,66 @@ +{ stdenv +, autoPatchelfHook +, fetchurl +, file +, makeWrapper +, ncurses +, nixosTests +, openssl +, unzip +, zlib +}: +stdenv.mkDerivation { + pname = "pleroma-otp"; + version = "2.2.2"; + + # To find the latest binary release stable link, have a look at + # the CI pipeline for the latest commit of the stable branch + # https://git.pleroma.social/pleroma/pleroma/-/tree/stable + src = { + aarch64-linux = fetchurl { + url = "https://git.pleroma.social/pleroma/pleroma/-/jobs/175288/artifacts/download"; + sha256 = "107kp5zqwq1lixk1cwkx4v7zpm0h248xzlm152aj36ghb43j2snw"; + }; + x86_64-linux = fetchurl { + url = "https://git.pleroma.social/pleroma/pleroma/-/jobs/175284/artifacts/download"; + sha256 = "1c6l04gga9iigm249ywwcrjg6wzy8iiid652mws3j9dnl71w2sim"; + }; + }."${stdenv.hostPlatform.system}"; + + nativeBuildInputs = [ unzip ]; + + buildInputs = [ + autoPatchelfHook + file + makeWrapper + ncurses + openssl + zlib + ]; + + # mkDerivation fails to detect the zip nature of $src due to the + # missing .zip extension. + # Let's unpack the archive explicitely. + unpackCmd = "unzip $curSrc"; + + installPhase = '' + mkdir $out + cp -r * $out''; + + # Pleroma is using the project's root path (here the store path) + # as its TMPDIR. + # Patching it to move the tmp dir to the actual tmpdir + postFixup = '' + wrapProgram $out/bin/pleroma \ + --set-default RELEASE_TMP "/tmp" + wrapProgram $out/bin/pleroma_ctl \ + --set-default RELEASE_TMP "/tmp"''; + + meta = { + description = "ActivityPub microblogging server"; + homepage = https://git.pleroma.social/pleroma/pleroma; + license = stdenv.lib.licenses.agpl3; + maintainers = with stdenv.lib.maintainers; [ ninjatrappeur ]; + platforms = [ "x86_64-linux" "aarch64-linux" ]; + }; +} |