peerix/default.nix

24 lines
440 B
Nix
Raw Normal View History

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:01:03 -04:00
buildInputs = with pkgs; [
nix
nix-serve
];
2021-10-17 06:01:40 -04:00
}