2023-10-09 19:29:22 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
fetchFromGitea,
|
|
|
|
buildGoModule,
|
|
|
|
tailwindcss,
|
|
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "rimgo";
|
2024-07-01 15:47:52 +00:00
|
|
|
version = "1.2.5";
|
2023-10-09 19:29:22 +00:00
|
|
|
|
|
|
|
src = fetchFromGitea {
|
|
|
|
domain = "codeberg.org";
|
|
|
|
owner = "rimgo";
|
|
|
|
repo = "rimgo";
|
|
|
|
rev = "v${version}";
|
2024-07-01 15:47:52 +00:00
|
|
|
hash = "sha256-MSYTupt5f3ZjB84iLBp7bR+/nie1murpONKfXrBCu9Q=";
|
2023-10-09 19:29:22 +00:00
|
|
|
};
|
|
|
|
|
2024-07-01 15:47:52 +00:00
|
|
|
vendorHash = "sha256-nk1Pl9K62RjmBUgTlbp3u6cCoiEwpUHavfT3Oy0iyGU=";
|
2023-10-09 19:29: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; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Alternative frontend for Imgur";
|
2023-10-09 19:29:22 +00:00
|
|
|
homepage = "https://codeberg.org/rimgo/rimgo";
|
|
|
|
license = licenses.agpl3Only;
|
|
|
|
mainProgram = "rimgo";
|
|
|
|
maintainers = with maintainers; [ quantenzitrone ];
|
|
|
|
};
|
|
|
|
}
|