2023-09-24 10:09:07 +02:00
|
|
|
{ lib, nixosTests, callPackage, }:
|
2022-03-05 19:24:57 +01:00
|
|
|
let
|
2023-04-04 11:43:03 +02:00
|
|
|
generic = import ./generic.nix;
|
2022-03-05 19:24:57 +01:00
|
|
|
in
|
2023-09-24 09:51:26 +02:00
|
|
|
lib.fix (self: {
|
2024-01-22 16:17:57 +01:00
|
|
|
netbox = self.netbox_3_7;
|
2023-09-24 09:51:26 +02:00
|
|
|
|
2023-09-24 10:06:08 +02:00
|
|
|
netbox_3_6 = callPackage generic {
|
2024-01-02 21:05:45 +01:00
|
|
|
version = "3.6.9";
|
|
|
|
hash = "sha256-R/hcBKrylW3GnEy10DkrLVr8YJtsSCvCP9H9LhafO9I=";
|
2023-09-24 10:06:08 +02:00
|
|
|
extraPatches = [
|
|
|
|
# Allow setting the STATIC_ROOT from within the configuration and setting a custom redis URL
|
|
|
|
./config.patch
|
|
|
|
];
|
|
|
|
tests = {
|
|
|
|
netbox = nixosTests.netbox_3_6;
|
|
|
|
inherit (nixosTests) netbox-upgrade;
|
|
|
|
};
|
|
|
|
|
2023-04-04 11:43:03 +02:00
|
|
|
maintainers = with lib.maintainers; [ minijackson n0emis raitobezarius ];
|
2024-01-22 16:31:15 +01:00
|
|
|
eol = true;
|
2023-04-04 11:43:03 +02:00
|
|
|
};
|
2024-01-22 16:17:57 +01:00
|
|
|
|
|
|
|
netbox_3_7 = callPackage generic {
|
2024-03-06 21:43:25 +01:00
|
|
|
version = "3.7.3";
|
|
|
|
hash = "sha256-8apjw3mO3RKT/IgJOG1+2GSjNwFhddZ9rIChdP26leE=";
|
2024-01-22 16:17:57 +01:00
|
|
|
extraPatches = [
|
|
|
|
# Allow setting the STATIC_ROOT from within the configuration and setting a custom redis URL
|
|
|
|
./config.patch
|
|
|
|
];
|
|
|
|
tests = {
|
|
|
|
netbox = nixosTests.netbox_3_7;
|
|
|
|
inherit (nixosTests) netbox-upgrade;
|
|
|
|
};
|
|
|
|
|
|
|
|
maintainers = with lib.maintainers; [ minijackson n0emis raitobezarius ];
|
|
|
|
};
|
2023-09-24 09:51:26 +02:00
|
|
|
})
|