37 lines
859 B
Nix
37 lines
859 B
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
fetchFromGitea,
|
|
makeBinaryWrapper,
|
|
}:
|
|
buildGoModule rec {
|
|
pname = "pixivfe";
|
|
version = "2.5.1";
|
|
|
|
src = fetchFromGitea {
|
|
domain = "codeberg.org";
|
|
owner = "VnPower";
|
|
repo = "PixivFE";
|
|
rev = "v${version}";
|
|
hash = "sha256-G2pSPpemMFAbQ9QkI4XAHobv+Em9ZoDUJiO/cwEy4Tc=";
|
|
};
|
|
|
|
vendorHash = "sha256-QapDR964Tn+RxXdkGqCQXacdmlSapF841Y84n4d/6VI=";
|
|
|
|
nativeBuildInputs = [makeBinaryWrapper];
|
|
|
|
# PixivFE require files from source code
|
|
postInstall = ''
|
|
wrapProgram $out/bin/pixivfe \
|
|
--chdir ${src}
|
|
'';
|
|
|
|
meta = {
|
|
description = "A privacy respecting frontend for Pixiv";
|
|
homepage = "https://codeberg.org/VnPower/PixivFE";
|
|
license = lib.licenses.agpl3Only;
|
|
mainProgram = "pixivfe";
|
|
maintainers = with lib.maintainers; [Guanran928];
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
}
|