pkgs.nomads-cloud: put tmpfiles into tmpdir

This commit is contained in:
lassulus 2021-10-24 20:17:32 +02:00
parent 9fc5849786
commit 6ad567a18e

View File

@ -1,10 +1,10 @@
{ writers, coreutils, grib2json, curl, jq, findutils, imagemagick }: { writers, coreutils, grib2json, curl, jq, findutils, imagemagick }:
writers.writeDashBin "nomads-cloud" '' writers.writeDashBin "nomads-cloud" ''
prefix=$(mktemp -d) prefix=$(mktemp -d)
grib_path=$prefix.grib grib_path=$prefix/clouds.grib
json_path=$prefix.json json_path=$prefix/clouds.json
pgm_path=$prefix.pgm pgm_path=$prefix/clouds.pgm
png_path="$1" png_path=$1
mkdir -p "$prefix" mkdir -p "$prefix"