peerix/default.nix
2021-10-17 13:01:03 +02:00

23 lines
440 B
Nix

let
sources = import ./nix/sources.nix {};
in
{ pkgs ? import sources.nixpkgs {},
lib ? pkgs.lib,
...
}:
let
mach-nix = import sources.mach-nix {
inherit pkgs;
};
in
mach-nix.buildPythonApplication {
name = "peerix";
python = "python39";
src = lib.cleanSource ./.;
version = builtins.readFile ./VERSION;
requirements = builtins.readFile ./requirements.txt;
buildInputs = with pkgs; [
nix
nix-serve
];
}