Files
nixpkgs/pkgs/by-name/he/hedgedoc-cli/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

57 lines
966 B
Nix

{
lib,
stdenv,
fetchFromGitHub,
makeBinaryWrapper,
wget,
jq,
curl,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "hedgedoc-cli";
version = "1.0-unstable-2025-05-01";
src = fetchFromGitHub {
owner = "hedgedoc";
repo = "cli";
rev = "defeac80ca97fedcb19bdcddc516fd8f6e55fe8c";
hash = "sha256-7E5Ka6SEPRg2O4+bJ6g3gSDMLnPMzg5Lbslgvt6gNEg=";
};
nativeBuildInputs = [
makeBinaryWrapper
];
installPhase = ''
runHook preInstall
makeWrapper $src/bin/codimd $out/bin/hedgedoc-cli \
--prefix PATH : ${
lib.makeBinPath [
jq
wget
curl
]
}
runHook postInstall
'';
checkPhase = ''
runHook preCheck
hedgedoc-cli help
runHook postCheck
'';
meta = {
description = "Hedgedoc CLI";
homepage = "https://github.com/hedgedoc/cli";
license = lib.licenses.agpl3Only;
mainProgram = "hedgedoc-cli";
maintainers = [ ];
};
})