lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at 23.11-beta 35 lines 874 B view raw
1{ lib, fetchFromGitHub, buildGoModule, callPackage, enableWebui ? true }: 2 3buildGoModule rec { 4 pname = "rmfakecloud"; 5 version = "0.0.13.2"; 6 7 src = fetchFromGitHub { 8 owner = "ddvk"; 9 repo = pname; 10 rev = "v${version}"; 11 sha256 = "sha256-7lVNbqQv6MNIhHMFbH8VFVIjKiuTCbeVkAKeGprzrkw="; 12 }; 13 14 vendorHash = "sha256-Pz/TtGjwGHaDSueBEHMtHjyAxYO5V+8jzXCowHcUW/4="; 15 16 ui = callPackage ./webui.nix { inherit version src; }; 17 18 postPatch = if enableWebui then '' 19 mkdir -p ui/build 20 cp -r ${ui}/* ui/build 21 '' else '' 22 sed -i '/go:/d' ui/assets.go 23 ''; 24 25 ldflags = [ 26 "-s" "-w" "-X main.version=v${version}" 27 ]; 28 29 meta = with lib; { 30 description = "Host your own cloud for the Remarkable"; 31 homepage = "https://ddvk.github.io/rmfakecloud/"; 32 license = licenses.agpl3Only; 33 maintainers = with maintainers; [ pacien martinetd ]; 34 }; 35}