02cf88bb76
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
40 lines
761 B
Nix
40 lines
761 B
Nix
{ lib, stdenv, fetchFromGitHub, wget, jq, curl }:
|
|
|
|
let
|
|
version = "1.0";
|
|
in
|
|
stdenv.mkDerivation {
|
|
pname = "hedgedoc-cli";
|
|
inherit version;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "hedgedoc";
|
|
repo = "cli";
|
|
rev = "v${version}";
|
|
sha256 = "uz+lkRRUTRr8WR295esNEbgjlZ/Em7mBk6Nx0BWLfg4=";
|
|
};
|
|
|
|
buildInputs = [
|
|
wget
|
|
jq
|
|
curl
|
|
];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
install -Dm0755 -t $out/bin $src/bin/codimd
|
|
ln -s $out/bin/codimd $out/bin/hedgedoc-cli
|
|
runHook postInstall
|
|
'';
|
|
|
|
checkPhase = ''
|
|
hedgedoc-cli help
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Hedgedoc CLI";
|
|
homepage = "https://github.com/hedgedoc/cli";
|
|
license = licenses.agpl3;
|
|
maintainers = with maintainers; [ drupol ];
|
|
};
|
|
}
|