summaryrefslogtreecommitdiffstats
path: root/default.nix
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-01-13 22:16:54 +0100
committertv <tv@krebsco.de>2026-01-13 22:16:54 +0100
commite064bc363416051ef0f9fe53c6f602509a571309 (patch)
tree82f94bcc8e9051298b8c8d0e5472cb4dad02159f /default.nix
boom
Diffstat (limited to 'default.nix')
-rw-r--r--default.nix19
1 files changed, 19 insertions, 0 deletions
diff --git a/default.nix b/default.nix
new file mode 100644
index 0000000..b1a89f0
--- /dev/null
+++ b/default.nix
@@ -0,0 +1,19 @@
+{ lib, pkgs }:
+
+pkgs.runCommand "wetter-1.0" {
+} /* sh */ ''
+ ${pkgs.coreutils}/bin/mkdir -p $out/bin
+ ${pkgs.gnused}/bin/sed \
+ 's@^#!buildShellBin .*@export PATH=${lib.makeBinPath [
+ pkgs.attr
+ pkgs.coreutils
+ pkgs.curl
+ pkgs.gawk
+ pkgs.gnuplot
+ pkgs.gnused
+ pkgs.jq
+ ]}@' \
+ < ${./wetter} \
+ > $out/bin/wetter
+ ${pkgs.coreutils}/bin/chmod +x $out/bin/wetter
+''