seppo: init at 0-unstable-2025-06-03

authored by Infinidoge and committed by Valentin Gagarin 5140786a 14746f3b

+95
+26
pkgs/by-name/se/seppo/mcdb.nix
···
··· 1 + { 2 + buildDunePackage, 3 + camlp-streams, 4 + optint, 5 + alcotest, 6 + uri, 7 + base64, 8 + seppo, 9 + }: 10 + 11 + buildDunePackage { 12 + pname = "mcdb"; 13 + 14 + inherit (seppo) version src; 15 + 16 + propagatedBuildInputs = [ 17 + camlp-streams 18 + optint 19 + ]; 20 + 21 + checkInputs = [ 22 + alcotest 23 + uri 24 + base64 25 + ]; 26 + }
+69
pkgs/by-name/se/seppo/package.nix
···
··· 1 + { 2 + ocamlPackages, 3 + fetchFromGitea, 4 + ocaml-crunch, 5 + seppo, 6 + lib, 7 + }: 8 + 9 + let 10 + mcdb = ocamlPackages.callPackage ./mcdb.nix { inherit seppo; }; 11 + in 12 + 13 + ocamlPackages.buildDunePackage { 14 + pname = "seppo"; 15 + version = "0-unstable-2025-06-03"; 16 + 17 + src = fetchFromGitea { 18 + domain = "codeberg.org"; 19 + owner = "seppo"; 20 + repo = "seppo"; 21 + rev = "33ae3e9f61d596fb91d3ab1a91fc26ae80981a93"; 22 + hash = "sha256-tOIIfYBLcZqQzoPxAVkE8RGX0sugUmDGpxIhIZ5Wy+w="; 23 + }; 24 + 25 + # Provide git sha to avoid git dependency 26 + env.GIT_SHA = seppo.src.rev; 27 + 28 + # Static build fails to find correct static libraries 29 + postPatch = '' 30 + sed -i 's/-static/""/' bin/gen_flags.sh 31 + ''; 32 + 33 + nativeBuildInputs = [ 34 + ocaml-crunch 35 + ]; 36 + 37 + buildInputs = with ocamlPackages; [ 38 + mcdb 39 + 40 + camlp-streams 41 + cohttp-lwt-unix 42 + crunch 43 + csexp 44 + decoders-ezjsonm 45 + lambdasoup 46 + lwt_ppx 47 + mirage-crypto-rng 48 + ocaml_sqlite3 49 + optint 50 + safepass 51 + timedesc 52 + tls-lwt 53 + tyre 54 + uucp 55 + uuidm 56 + uunf 57 + uutf 58 + x509 59 + xmlm 60 + ]; 61 + 62 + meta = { 63 + homepage = "https://seppo.mro.name"; 64 + description = "Personal Social Web"; 65 + license = lib.licenses.gpl3Plus; 66 + maintainers = with lib.maintainers; [ infinidoge ]; 67 + mainProgram = "seppo"; 68 + }; 69 + }