mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 16:03:23 +00:00
Merge pull request #182571 from drupol/new/hedgedoc-cli
This commit is contained in:
commit
4f45ea54d6
40
pkgs/tools/admin/hedgedoc-cli/default.nix
Normal file
40
pkgs/tools/admin/hedgedoc-cli/default.nix
Normal file
@ -0,0 +1,40 @@
|
||||
{ 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 ];
|
||||
};
|
||||
}
|
@ -27648,6 +27648,8 @@ with pkgs;
|
||||
stdenv = clangStdenv;
|
||||
};
|
||||
|
||||
hedgedoc-cli = callPackage ../tools/admin/hedgedoc-cli { };
|
||||
|
||||
heimer = libsForQt5.callPackage ../applications/misc/heimer { };
|
||||
|
||||
hello = callPackage ../applications/misc/hello { };
|
||||
|
Loading…
Reference in New Issue
Block a user