mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
14 lines
374 B
Nix
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
|
|
'';
|
|
}
|