pleroma-otp: init at 2.1.2
This commit is contained in:
commit
7f4049616d
|
@ -0,0 +1,19 @@
|
|||
{ pkgs ? import <nixpkgs> {} }:
|
||||
|
||||
pkgs.stdenv.mkDerivation {
|
||||
pname = "pleroma";
|
||||
version = "2.1.2";
|
||||
src = pkgs.fetchurl {
|
||||
# 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
|
||||
url = "https://git.pleroma.social/pleroma/pleroma/-/jobs/154862/artifacts/download";
|
||||
sha256 = "16352ail4w1v0im5w1aq0z4lb1k85qa2qrr44pq12h0l6m05bc0z";
|
||||
};
|
||||
# mkDerivation fails to detect the zip nature of $src :/
|
||||
# Let's unpack the archive explicitely.
|
||||
unpackPhase = "${pkgs.unzip}/bin/unzip $src";
|
||||
installPhase = ''
|
||||
mkdir $out
|
||||
cp -r release/* $out'';
|
||||
}
|
|
@ -0,0 +1,15 @@
|
|||
# Pleroma on NixOS: OTP Release
|
||||
|
||||
## TODO
|
||||
|
||||
- Add NixOS module.
|
||||
- Patch the tmp runtime paths.
|
||||
- Test all the $out binaries
|
||||
|
||||
## Minor Annoyances
|
||||
|
||||
We're retrieving the binary distribution directly from the GitLab CI pipeline.
|
||||
|
||||
To find the latest and greatest bindist stable URL, you have to visit
|
||||
https://git.pleroma.social/pleroma/pleroma/-/tree/stable, clicky click
|
||||
on the CI status and find the amd64 release link.
|
Loading…
Reference in New Issue