2023-10-09 19:29:22 +00:00
|
|
|
{ lib, nixosTests, callPackage, }:
|
2022-04-03 18:54:34 +00:00
|
|
|
let
|
2023-04-12 12:48:02 +00:00
|
|
|
generic = import ./generic.nix;
|
2022-04-03 18:54:34 +00:00
|
|
|
in
|
2023-10-09 19:29:22 +00:00
|
|
|
lib.fix (self: {
|
2024-01-25 14:12:00 +00:00
|
|
|
netbox = self.netbox_3_7;
|
2023-10-09 19:29:22 +00:00
|
|
|
|
2024-01-25 14:12:00 +00:00
|
|
|
netbox_3_6 = callPackage generic {
|
|
|
|
version = "3.6.9";
|
|
|
|
hash = "sha256-R/hcBKrylW3GnEy10DkrLVr8YJtsSCvCP9H9LhafO9I=";
|
2023-04-12 12:48:02 +00:00
|
|
|
extraPatches = [
|
2022-04-03 18:54:34 +00:00
|
|
|
# Allow setting the STATIC_ROOT from within the configuration and setting a custom redis URL
|
2023-10-09 19:29:22 +00:00
|
|
|
./config.patch
|
2022-04-03 18:54:34 +00:00
|
|
|
];
|
2023-08-22 20:05:09 +00:00
|
|
|
tests = {
|
2024-01-25 14:12:00 +00:00
|
|
|
netbox = nixosTests.netbox_3_6;
|
2023-08-22 20:05:09 +00:00
|
|
|
inherit (nixosTests) netbox-upgrade;
|
|
|
|
};
|
2023-10-09 19:29:22 +00:00
|
|
|
|
|
|
|
maintainers = with lib.maintainers; [ minijackson n0emis raitobezarius ];
|
2023-04-12 12:48:02 +00:00
|
|
|
eol = true;
|
|
|
|
};
|
2022-08-12 12:06:08 +00:00
|
|
|
|
2024-01-25 14:12:00 +00:00
|
|
|
netbox_3_7 = callPackage generic {
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "3.7.4";
|
|
|
|
hash = "sha256-jQJYtu1K13AsFXx4GTgtMOdppK1Tgoaf2/fKKhS1sQo=";
|
2023-04-12 12:48:02 +00:00
|
|
|
extraPatches = [
|
|
|
|
# Allow setting the STATIC_ROOT from within the configuration and setting a custom redis URL
|
|
|
|
./config.patch
|
2022-08-12 12:06:08 +00:00
|
|
|
];
|
2023-04-12 12:48:02 +00:00
|
|
|
tests = {
|
2024-01-25 14:12:00 +00:00
|
|
|
netbox = nixosTests.netbox_3_7;
|
2023-10-09 19:29:22 +00:00
|
|
|
inherit (nixosTests) netbox-upgrade;
|
2022-04-03 18:54:34 +00:00
|
|
|
};
|
|
|
|
|
2023-04-12 12:48:02 +00:00
|
|
|
maintainers = with lib.maintainers; [ minijackson n0emis raitobezarius ];
|
|
|
|
};
|
2023-10-09 19:29:22 +00:00
|
|
|
})
|