depot/third_party/nixpkgs/pkgs/by-name/ri/rimgo/package.nix
Default email b5f92a349c Project import generated by Copybara.
GitOrigin-RevId: 7c9cc5a6e5d38010801741ac830a3f8fd667a7a0
2023-10-19 15:55:26 +02:00

40 lines
861 B
Nix

{
lib,
fetchFromGitea,
buildGoModule,
tailwindcss,
}:
buildGoModule rec {
pname = "rimgo";
version = "1.2.1";
src = fetchFromGitea {
domain = "codeberg.org";
owner = "rimgo";
repo = "rimgo";
rev = "v${version}";
hash = "sha256-C6xixULZCDs+rIP7IWBVQNo34Yk/8j9ell2D0nUoHBg=";
};
vendorHash = "sha256-u5N7aI9RIQ3EmiyHv0qhMcKkvmpp+5G7xbzdQcbhybs=";
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 ];
};
}