Compare commits

...

No commits in common. "7f4049616d3b1ca5253a83cbd5492928e6dffa61" and "fee9a5d922b6c825a4572a79ae2256f57d933aae" have entirely different histories.

2 changed files with 22 additions and 4 deletions

View File

@ -10,10 +10,30 @@ pkgs.stdenv.mkDerivation {
url = "https://git.pleroma.social/pleroma/pleroma/-/jobs/154862/artifacts/download";
sha256 = "16352ail4w1v0im5w1aq0z4lb1k85qa2qrr44pq12h0l6m05bc0z";
};
buildInputs = [
pkgs.autoPatchelfHook
pkgs.makeWrapper
pkgs.ncurses
pkgs.openssl
pkgs.unzip
pkgs.zlib
];
# mkDerivation fails to detect the zip nature of $src :/
# Let's unpack the archive explicitely.
unpackPhase = "${pkgs.unzip}/bin/unzip $src";
unpackPhase = "unzip $src";
installPhase = ''
mkdir $out
cp -r release/* $out'';
mkdir $out/bin
# Let's copy everything but the bin folder
shopt -s extglob
cp -r release/* $out
# Pleroma is using the project path (here the store path) as default a TMPDIR.
# Patching it to move the tmp dir to the actual tmpdir
ls -l release/bin
wrapProgram $out/bin/pleroma \
--set-default RELEASE_TMP "/tmp"
wrapProgram $out/bin/pleroma \
--set-default RELEASE_TMP "/tmp"'';
}

View File

@ -3,8 +3,6 @@
## TODO
- Add NixOS module.
- Patch the tmp runtime paths.
- Test all the $out binaries
## Minor Annoyances