2023-09-16 03:09:22 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
fetchFromGitea,
|
|
|
|
buildGoModule,
|
|
|
|
tailwindcss,
|
|
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "rimgo";
|
2024-01-17 23:16:48 +00:00
|
|
|
version = "1.2.3";
|
2023-09-16 03:09:22 +00:00
|
|
|
|
|
|
|
src = fetchFromGitea {
|
|
|
|
domain = "codeberg.org";
|
|
|
|
owner = "rimgo";
|
|
|
|
repo = "rimgo";
|
|
|
|
rev = "v${version}";
|
2024-01-17 23:16:48 +00:00
|
|
|
hash = "sha256-nokXM+lnTiaWKwglmFYLBpnGHJn1yFok76tqb0nulVA=";
|
2023-09-16 03:09:22 +00:00
|
|
|
};
|
|
|
|
|
2024-01-17 23:16:48 +00:00
|
|
|
vendorHash = "sha256-wDTSqfp1Bb1Jb9XX3A3/p5VUcjr5utpe6l/3pXfZpsg=";
|
2023-09-16 03:09:22 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ tailwindcss ];
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
tailwindcss -i static/tailwind.css -o static/app.css -m
|
|
|
|
'';
|
|
|
|
|
|
|
|
ldflags = [
|
|
|
|
"-s"
|
|
|
|
"-w"
|
|
|
|
"-X codeberg.org/rimgo/rimgo/pages.VersionInfo=${version}"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "An alternative frontend for Imgur";
|
|
|
|
homepage = "https://codeberg.org/rimgo/rimgo";
|
|
|
|
license = licenses.agpl3Only;
|
|
|
|
mainProgram = "rimgo";
|
|
|
|
maintainers = with maintainers; [ quantenzitrone ];
|
|
|
|
};
|
|
|
|
}
|