at 23.11-beta 35 lines 811 B view raw
1{ lib, buildGoModule, fetchFromGitea }: 2 3buildGoModule rec { 4 pname = "lenpaste"; 5 version = "1.3"; 6 7 src = fetchFromGitea { 8 domain = "git.lcomrade.su"; 9 owner = "root"; 10 repo = pname; 11 rev = "v${version}"; 12 sha256 = "sha256-d+FjfEbInlxUllWIoVLwQRdRWjxBLTpNHYn+oYU3fBc="; 13 }; 14 15 vendorHash = "sha256-PL0dysBn1+1BpZWFW/EUFJtqkabt+XN00YkAz8Yf2LQ="; 16 17 ldflags = [ 18 "-w" 19 "-s" 20 "-X main.Version=${version}" 21 ]; 22 23 subPackages = [ "cmd" ]; 24 25 postInstall = '' 26 mv $out/bin/cmd $out/bin/lenpaste 27 ''; 28 29 meta = with lib; { 30 description = "A web service that allows you to share notes anonymously, an alternative to pastebin.com"; 31 homepage = "https://git.lcomrade.su/root/lenpaste"; 32 license = licenses.agpl3Plus; 33 maintainers = with maintainers; [ vector1dev ]; 34 }; 35}