slipshow: init at 0.2.0
NLNet project: https://nlnet.nl/project/Slipshow/ Signed-off-by: Ethan Carter Edwards <ethan@ethancedwards.com>
This commit is contained in:
@@ -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";
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user