Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
40 lines
858 B
Nix
40 lines
858 B
Nix
{
|
|
lib,
|
|
fetchFromGitea,
|
|
buildGoModule,
|
|
tailwindcss,
|
|
}:
|
|
buildGoModule rec {
|
|
pname = "rimgo";
|
|
version = "1.2.6";
|
|
|
|
src = fetchFromGitea {
|
|
domain = "codeberg.org";
|
|
owner = "rimgo";
|
|
repo = "rimgo";
|
|
rev = "v${version}";
|
|
hash = "sha256-PBzbCiRIDrtKH3j6jxmylPpwafR5qgRYDHgYP1m/+Ok=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|