2021-10-17 06:01:40 -04:00
|
|
|
let
|
2021-10-17 06:14:55 -04:00
|
|
|
sources = import ./nix/sources.nix {};
|
|
|
|
in
|
|
|
|
{ pkgs ? import sources.nixpkgs {},
|
|
|
|
lib ? pkgs.lib,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
let
|
2021-10-17 06:01:40 -04:00
|
|
|
mach-nix = import sources.mach-nix {
|
|
|
|
inherit pkgs;
|
|
|
|
};
|
|
|
|
in
|
|
|
|
mach-nix.buildPythonApplication {
|
2021-10-17 06:14:55 -04:00
|
|
|
name = "peerix";
|
|
|
|
python = "python39";
|
|
|
|
src = lib.cleanSource ./.;
|
|
|
|
version = builtins.readFile ./VERSION;
|
|
|
|
requirements = builtins.readFile ./requirements.txt;
|
2021-10-17 07:35:23 -04:00
|
|
|
propagatedBuildInputs = with pkgs; [
|
2021-10-17 07:01:03 -04:00
|
|
|
nix
|
|
|
|
nix-serve
|
|
|
|
];
|
2021-10-17 06:01:40 -04:00
|
|
|
}
|