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