This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

superconfig / skills / hedgedoc / default.nix
1.1 kB 47 lines
1{ 2 python, 3 makeWrapper, 4 curl, 5 lib, 6 stdenv, 7 ... 8}: 9 10let 11 pythonWithDeps = python.withPackages (ps: [ ps.websocket-client ]); 12in 13stdenv.mkDerivation { 14 pname = "hedgedoc-skill"; 15 version = "0.1.0"; 16 src = ./.; 17 18 nativeBuildInputs = [ makeWrapper ]; 19 20 buildInputs = [ 21 curl 22 pythonWithDeps 23 ]; 24 25 installPhase = '' 26 mkdir -p $out/bin $out/share/hedgedoc 27 cp pad-edit.py $out/share/hedgedoc/pad-edit.py 28 chmod +x $out/share/hedgedoc/pad-edit.py 29 cp pad.sh $out/share/hedgedoc/pad.sh 30 chmod +x $out/share/hedgedoc/pad.sh 31 cp SKILL.md $out/share/hedgedoc/SKILL.md 32 33 wrapProgram $out/share/hedgedoc/pad-edit.py \ 34 --prefix PATH : ${lib.makeBinPath [ pythonWithDeps ]} 35 36 wrapProgram $out/share/hedgedoc/pad.sh \ 37 --prefix PATH : ${lib.makeBinPath [ curl ]} \ 38 --set SKILL_DIR $out/share/hedgedoc 39 40 ln -s $out/share/hedgedoc/pad.sh $out/bin/pad.sh 41 ''; 42 43 meta = { 44 description = "Manage HedgeDoc pads - create, read, edit collaborative markdown documents"; 45 mainProgram = "pad.sh"; 46 }; 47}