10 version = cjdns.version;
25 sed -e "s|'password': 'NONE'|'password': Fs.readFileSync('/etc/cjdns.keys').toString().split('\\\\n').map(v => v.split('=')).filter(v => v[0] === 'CJDNS_ADMIN_PASSWORD').map(v => v[1])[0]|g" \
26 -i tools/lib/cjdnsadmin/cjdnsadmin.js
31 cat ${./wrapper.sh} | sed "s|@@out@@|$out|g" > $out/bin/cjdns-tools
32 chmod +x $out/bin/cjdns-tools
34 cp -r tools $out/tools
35 find $out/tools -maxdepth 1 -type f -exec chmod -v a+x {} \;
36 cp -r node_modules $out/node_modules
40 homepage = "https://github.com/cjdelisle/cjdns";
41 description = "Tools for cjdns managment";
42 license = licenses.gpl3Plus;
43 maintainers = with maintainers; [ mkg20001 ];
44 platforms = platforms.linux;