slipshow: init at 0.2.0 (#417039)

This commit is contained in:
Gaétan Lepage
2025-06-20 21:08:02 +02:00
committed by GitHub
+62
View File
@@ -0,0 +1,62 @@
{
lib,
ocamlPackages,
fetchFromGitHub,
versionCheckHook,
nix-update-script,
}:
ocamlPackages.buildDunePackage rec {
pname = "slipshow";
version = "0.2.0";
src = fetchFromGitHub {
owner = "panglesd";
repo = "slipshow";
tag = "v${version}";
hash = "sha256-1gjQDkjDxanshvn1fNxwpJFt12uRWnkmRbs0tWdTgtM=";
};
postPatch = ''
substituteInPlace ./src/cli/main.ml \
--replace-fail '%%VERSION%%' '${version}'
'';
nativeBuildInputs = with ocamlPackages; [
js_of_ocaml
];
buildInputs = with ocamlPackages; [
base64
bos
cmdliner
dream
fmt
fpath
irmin-watcher
js_of_ocaml-lwt
logs
lwt
magic-mime
ppx_blob
ppx_sexp_value
sexplib
];
doCheck = true;
nativeCheckInputs = [ versionCheckHook ];
versionCheckProgramArg = "--version";
doInstallCheck = true;
passthru.updateScript = nix-update-script { };
meta = {
description = "Engine for displaying slips, the next-gen version of slides";
homepage = "https://slipshow.readthedocs.io/en/latest/index.html";
downloadPage = "https://github.com/panglesd/slipshow";
maintainers = [ lib.maintainers.ethancedwards8 ];
teams = [ lib.teams.ngi ];
mainProgram = "slipshow";
};
}