Compare commits
No commits in common. "4a6f1758c0383787d409fb78dfc337cfc8106f03" and "7afa0289d8f4d8ec0a8fa8393c48db4e43ea0039" have entirely different histories.
4a6f1758c0
...
7afa0289d8
37
default.nix
37
default.nix
|
@ -1,7 +1,7 @@
|
|||
{ pkgs ? import <nixpkgs> {} }:
|
||||
{ pkgs ? import <nixpkgs> {}, stdenv ? (import <nixpkgs> {}).stdenv }:
|
||||
|
||||
pkgs.stdenv.mkDerivation {
|
||||
pname = "pleroma";
|
||||
stdenv.mkDerivation {
|
||||
pname = "pleroma-otp";
|
||||
version = "2.1.2";
|
||||
|
||||
src = pkgs.fetchurl {
|
||||
|
@ -12,28 +12,37 @@ pkgs.stdenv.mkDerivation {
|
|||
sha256 = "16352ail4w1v0im5w1aq0z4lb1k85qa2qrr44pq12h0l6m05bc0z";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
pkgs.autoPatchelfHook
|
||||
pkgs.makeWrapper
|
||||
pkgs.ncurses
|
||||
pkgs.openssl
|
||||
pkgs.unzip
|
||||
pkgs.zlib
|
||||
nativeBuildInputs = [ pkgs.unzip ];
|
||||
|
||||
buildInputs = with pkgs; [
|
||||
autoPatchelfHook
|
||||
makeWrapper
|
||||
ncurses
|
||||
openssl
|
||||
zlib
|
||||
];
|
||||
|
||||
# mkDerivation fails to detect the zip nature of $src :/
|
||||
# Let's unpack the archive explicitely.
|
||||
unpackPhase = "unzip $src";
|
||||
|
||||
installPhase = ''
|
||||
mkdir $out
|
||||
cp -r release/* $out
|
||||
cp -r release/* $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
|
||||
# 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 ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue