2024-05-23 16:15:10 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildGoModule,
|
|
|
|
fetchFromGitea,
|
|
|
|
makeBinaryWrapper,
|
|
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "pixivfe";
|
2024-06-12 09:01:49 +00:00
|
|
|
version = "2.6";
|
2024-05-23 16:15:10 +00:00
|
|
|
|
|
|
|
src = fetchFromGitea {
|
|
|
|
domain = "codeberg.org";
|
|
|
|
owner = "VnPower";
|
|
|
|
repo = "PixivFE";
|
|
|
|
rev = "v${version}";
|
2024-06-12 09:01:49 +00:00
|
|
|
hash = "sha256-pusyCXy2tsdvOSUR6LfSYHv8YT1tiCErqUEkUgKYbZ4=";
|
2024-05-23 16:15:10 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
vendorHash = "sha256-QapDR964Tn+RxXdkGqCQXacdmlSapF841Y84n4d/6VI=";
|
|
|
|
|
2024-07-11 15:50:43 +00:00
|
|
|
ldflags = [
|
|
|
|
"-s"
|
|
|
|
"-w"
|
|
|
|
];
|
2024-06-12 09:01:49 +00:00
|
|
|
|
2024-08-25 15:02:35 +00:00
|
|
|
nativeBuildInputs = [ makeBinaryWrapper ];
|
2024-05-23 16:15:10 +00:00
|
|
|
|
|
|
|
postInstall = ''
|
2024-07-11 15:50:43 +00:00
|
|
|
mkdir -p $out/share/pixivfe
|
|
|
|
cp -r ./views/ $out/share/pixivfe/views
|
2024-05-23 16:15:10 +00:00
|
|
|
wrapProgram $out/bin/pixivfe \
|
2024-07-11 15:50:43 +00:00
|
|
|
--chdir $out/share/pixivfe
|
2024-05-23 16:15:10 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2024-07-11 15:50:43 +00:00
|
|
|
description = "Privacy respecting frontend for Pixiv";
|
2024-05-23 16:15:10 +00:00
|
|
|
homepage = "https://codeberg.org/VnPower/PixivFE";
|
|
|
|
license = lib.licenses.agpl3Only;
|
|
|
|
mainProgram = "pixivfe";
|
2024-08-25 15:02:35 +00:00
|
|
|
maintainers = with lib.maintainers; [ Guanran928 ];
|
2024-05-23 16:15:10 +00:00
|
|
|
platforms = lib.platforms.linux;
|
|
|
|
};
|
|
|
|
}
|