1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 10:11:08 +01:00

scripts: fix syntax

This commit is contained in:
Kierán Meinhardt
2019-08-18 19:15:54 +02:00
parent 7b837372e6
commit 0557d4e76a
3 changed files with 6 additions and 5 deletions

View File

@@ -5,8 +5,8 @@ stdenv.mkDerivation {
repo = "libcoap"; repo = "libcoap";
owner = "obgm"; owner = "obgm";
rev = "25863042ae1e95138776f65c772f9fa6ce60495c"; rev = "25863042ae1e95138776f65c772f9fa6ce60495c";
fetchSubmodules = true;
sha256 = "1nic584jwkndg0w831h0fnxk0zx0apf2lw5md079m3di7zcxs6bw"; sha256 = "1nic584jwkndg0w831h0fnxk0zx0apf2lw5md079m3di7zcxs6bw";
fetchSubmodules = true;
}; };
buildInputs = [ buildInputs = [
automake automake
@@ -14,13 +14,13 @@ stdenv.mkDerivation {
which which
libtool libtool
]; ];
preConfigure = ''./autogen.sh''; preConfigure = "./autogen.sh";
configureFlags = [ configureFlags = [
"--disable-documentation" "--disable-documentation"
"--disable-shared" "--disable-shared"
]; ];
meta = with stdenv.lib; { meta = with stdenv.lib; {
homepage = https://github.com/obgm/libcoap; homepage = "https://github.com/obgm/libcoap";
description = "A CoAP (RFC 7252) implementation in C"; description = "A CoAP (RFC 7252) implementation in C";
platforms = platforms.linux; platforms = platforms.linux;
license = licenses.bsd2; license = licenses.bsd2;

View File

@@ -2,4 +2,5 @@
writeShellScriptBin "man-pdf" '' writeShellScriptBin "man-pdf" ''
for program in "$@"; do for program in "$@"; do
man -t "$program" | ${texlive.combined.scheme-basic}/bin/ps2pdf man -t "$program" | ${texlive.combined.scheme-basic}/bin/ps2pdf
done
'' ''

View File

@@ -1,4 +1,4 @@
{ writeShellScriptBin, curl, jq }: { writeShellScriptBin, curl }:
writeShellScriptBin "wttr" '' writeShellScriptBin "wttr" ''
${curl}/bin/curl -s -H "Accept-Language: ''${LANG%_*}" --compressed "wttr.in/''${1-"@$(${curl}/bin/curl -s ipinfo.io | ${jq}/bin/jq -r .ip)"}?0" ${curl}/bin/curl -s -H "Accept-Language: ''${LANG%_*}" --compressed "wttr.in/''${1-}?0"
'' ''