infrastructure/pkgs/kat-weather/default.nix
2021-03-09 00:45:18 +00:00

14 lines
374 B
Nix

{ lib, stdenv, fetchurl, python36, pythonPackages, installShellFiles }:
stdenv.mkDerivation {
name = "kat-weather";
buildInputs = [
(python36.withPackages (pythonPackages: with pythonPackages; [ requests ]))
];
unpackPhase = "true";
installPhase = ''
mkdir -p $out/bin
cp ${./weather.py} $out/bin/kat-weather
chmod +x $out/bin/kat-weather
'';
}