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
iot-data
default.nix
nix-remove-result-links
nixfiles
overrides
print-afra
run-with-docker-group
ssh-gpg
update-from-hydra
uptimestatus
overlay.nix
users
.gitignore
README.md
flake.lock
flake.nix
31 lines
511 B
Nix
31 lines
511 B
Nix
{
|
|
pkgs,
|
|
buildPythonPackage,
|
|
flask,
|
|
python3,
|
|
}:
|
|
|
|
let
|
|
src = pkgs.fetchgit {
|
|
url = "https://git.clerie.de/clerie/iot-data.git";
|
|
rev = "f60e3a3f89549b4ce88df20888c08a01062d086a";
|
|
sha256 = "sha256-D8wusJfYbOkL/Nq6yfYBvhnkBmRcDktORicUpDsIrUE=";
|
|
};
|
|
pname = "iot-data";
|
|
version = "0.0.1";
|
|
|
|
|
|
in buildPythonPackage rec {
|
|
inherit src pname version;
|
|
|
|
propagatedBuildInputs = [
|
|
flask
|
|
];
|
|
|
|
postInstall = ''
|
|
mkdir -p $out/${python3.sitePackages}/iot_data
|
|
'';
|
|
|
|
doCheck = false;
|
|
}
|