-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathflake.nix
50 lines (46 loc) · 1.26 KB
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
{
description = "devpi-server with the devpi-web plugin.";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-22.11";
flake-utils.url = "github:numtide/flake-utils";
};
outputs =
{
self,
nixpkgs,
flake-utils,
}:
flake-utils.lib.eachDefaultSystem (
system:
let
# I'm to lazy to change this in deployments
overlays = [ self.overlays.default ];
pkgs = import nixpkgs { inherit system overlays; };
in
{
packages = rec {
default = pkgs.devpi-web;
devpi-web = pkgs.devpi-web;
devpi-server = pkgs.devpi-server;
};
}
)
// {
overlays.default = final: prev: {
devpi-web = (
final.python3Packages.callPackage ./devpi-web-package {
# break loop by using unaltered (super) devpi-server
devpi-server = prev.devpi-server;
}
);
devpi-server = prev.devpi-server.overrideAttrs (oa: {
propagatedBuildInputs = oa.propagatedBuildInputs ++ [ final.devpi-web ];
});
meta = with final.lib; {
license = licenses.mit;
maintainers = [ "jozi" ];
homepage = "https://github.com/DBCDK/devpi-web";
};
};
};
}