2023-05-10 23:04:05 +00:00
|
|
|
{ pkgs, lib }:
|
2023-03-05 14:57:52 +00:00
|
|
|
|
|
|
|
pkgs.buildGoModule rec {
|
|
|
|
pname = "rimgo";
|
2023-08-24 19:26:05 +00:00
|
|
|
version = "2023-08-16";
|
2023-03-05 14:57:52 +00:00
|
|
|
|
|
|
|
src = pkgs.fetchFromGitea {
|
|
|
|
domain = "codeberg.org";
|
|
|
|
owner = "video-prize-ranch";
|
|
|
|
repo = pname;
|
2023-08-24 19:26:05 +00:00
|
|
|
rev = "877ee7faa935aa1073dd21260f19952e018df416";
|
|
|
|
sha256 = "sha256-M40YS3T69sUzbEclr9jIl/6cJWmlvKYAsNcafaakWmg=";
|
2023-03-05 14:57:52 +00:00
|
|
|
};
|
|
|
|
|
2023-08-24 19:26:05 +00:00
|
|
|
vendorSha256 = "sha256-u5N7aI9RIQ3EmiyHv0qhMcKkvmpp+5G7xbzdQcbhybs=";
|
2023-06-22 20:48:33 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgs.nodePackages.tailwindcss ];
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
tailwindcss -i static/tailwind.css -o static/app.css -m
|
|
|
|
'';
|
2023-03-05 14:57:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "An alternative frontend for Imgur.";
|
|
|
|
homepage = "https://codeberg.org/video-prize-ranch/rimgo";
|
|
|
|
license = [ licenses.agpl3 ];
|
|
|
|
platforms = [ "x86_64-darwin" "aarch64-darwin" "aarch64-linux" "x86_64-linux" ];
|
|
|
|
};
|
|
|
|
}
|