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

Learn from jwiegley

This commit is contained in:
Kierán Meinhardt
2019-01-17 00:29:27 +01:00
parent 66f75cda9e
commit ce30587001
3 changed files with 37 additions and 32 deletions

View File

@@ -388,6 +388,9 @@ let
scripts.wttr = unstable.writers.writeDashBin "wttr" ''
${pkgs.curl}/bin/curl -s -H "Accept-Language: ''${LANG%_*}" --compressed "wttr.in/''${1-$(${pkgs.curl}/bin/curl -s ipinfo.io | ${pkgs.jq}/bin/jq .loc)}?0"
'';
scripts.nix-git = unstable.writers.writeDashBin "nix-git" ''
${pkgs.nix-prefetch-git}/bin/nix-prefetch-git "$@" 2> /dev/null | ${pkgs.jq}/bin/jq -r '"rev = \"\(.rev)\";\nsha256 = \"\(.sha256)\";"'
'';
scripts.q =
let
q-performance = ''