blob: b69412bb5e2ae83cfde965b080c8355bffea1c33 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
{
lib,
fetchFromGitea,
buildGoModule,
tailwindcss,
}:
buildGoModule rec {
pname = "rimgo";
version = "1.2.5";
src = fetchFromGitea {
domain = "codeberg.org";
owner = "rimgo";
repo = "rimgo";
rev = "v${version}";
hash = "sha256-MSYTupt5f3ZjB84iLBp7bR+/nie1murpONKfXrBCu9Q=";
};
vendorHash = "sha256-nk1Pl9K62RjmBUgTlbp3u6cCoiEwpUHavfT3Oy0iyGU=";
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 = "Alternative frontend for Imgur";
homepage = "https://codeberg.org/rimgo/rimgo";
license = licenses.agpl3Only;
mainProgram = "rimgo";
maintainers = with maintainers; [ quantenzitrone ];
};
}
|