Merge pull request #183398 from drupol/fix/hedgedoc-cli-fix-shell-script
This commit is contained in:
commit
9d9981f847
|
@ -1,4 +1,4 @@
|
|||
{ lib, stdenv, fetchFromGitHub, wget, jq, curl }:
|
||||
{ lib, stdenv, fetchFromGitHub, makeWrapper, wget, jq, curl }:
|
||||
|
||||
let
|
||||
version = "1.0";
|
||||
|
@ -14,15 +14,16 @@ stdenv.mkDerivation {
|
|||
sha256 = "uz+lkRRUTRr8WR295esNEbgjlZ/Em7mBk6Nx0BWLfg4=";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
wget
|
||||
jq
|
||||
curl
|
||||
nativeBuildInputs = [
|
||||
makeWrapper
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
install -Dm0755 -t $out/bin $src/bin/codimd
|
||||
mkdir -p $out/bin
|
||||
cp $src/bin/codimd $out/bin
|
||||
wrapProgram $out/bin/codimd \
|
||||
--prefix PATH : ${lib.makeBinPath [ jq wget curl ]}
|
||||
ln -s $out/bin/codimd $out/bin/hedgedoc-cli
|
||||
runHook postInstall
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue