configuration
flake
hosts
lib
modules
pkgs
chromium-incognito
clerie-backup
clerie-keys
clerie-sops
clerie-system-remote-install
clerie-system-upgrade
clerie-update-nixfiles
factorio-launcher
feeds-dir
git-checkout-github-pr
git-diff-word
git-pp
git-show-link
iot-data
nix-remove-result-links
nixfiles
overrides
print-afra
run-with-docker-group
ssh-gpg
update-from-hydra
uptimestatus
default.nix
overlay.nix
pkgs.nix
users
.gitignore
README.md
flake.lock
flake.nix
35 lines
713 B
Nix
35 lines
713 B
Nix
{
|
|
pkgs,
|
|
buildPythonPackage,
|
|
flask,
|
|
requests,
|
|
python3,
|
|
}:
|
|
|
|
let
|
|
src = pkgs.fetchgit {
|
|
url = "https://git.clerie.de/clerie/uptime-status.git";
|
|
rev = "caacaced97617838bbd9b7b91a4e3d06e411139b";
|
|
sha256 = "sha256-qVvUZ+j2JnG26Fl/UcfpjY30RQjAPqCCwbxtz/+r/dU=";
|
|
};
|
|
pname = "uptimestatus";
|
|
version = "0.0.1";
|
|
|
|
|
|
in buildPythonPackage rec {
|
|
inherit src pname version;
|
|
|
|
propagatedBuildInputs = [
|
|
flask
|
|
requests
|
|
];
|
|
|
|
postInstall = ''
|
|
mkdir -p $out/${python3.sitePackages}/uptimestatus
|
|
cp -r uptimestatus/static $out/${python3.sitePackages}/uptimestatus/static
|
|
cp -r uptimestatus/templates $out/${python3.sitePackages}/uptimestatus/templates
|
|
'';
|
|
|
|
doCheck = false;
|
|
}
|