2023-04-12 12:48:02 +00:00
|
|
|
{ lib, nixosTests, callPackage, fetchpatch }:
|
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-04-12 12:48:02 +00:00
|
|
|
{
|
|
|
|
netbox_3_3 = callPackage generic {
|
|
|
|
version = "3.3.10";
|
|
|
|
hash = "sha256-MeOfTU5IxNDoUh7FyvwAQNRC/CE0R6p40WnlF+3RuxA=";
|
|
|
|
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-04-12 12:48:02 +00:00
|
|
|
./config_3_3.patch
|
2022-04-27 09:35:20 +00:00
|
|
|
./graphql-3_2_0.patch
|
2022-12-28 21:21:41 +00:00
|
|
|
# fix compatibility ith django 4.1
|
2022-12-17 10:02:37 +00:00
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/netbox-community/netbox/pull/10341/commits/ce6bf9e5c1bc08edc80f6ea1e55cf1318ae6e14b.patch";
|
|
|
|
sha256 = "sha256-aCPQp6k7Zwga29euASAd+f13hIcZnIUu3RPAzNPqgxc=";
|
|
|
|
})
|
2022-04-03 18:54:34 +00:00
|
|
|
];
|
|
|
|
|
2023-04-12 12:48:02 +00:00
|
|
|
tests.netbox = nixosTests.netbox_3_3;
|
|
|
|
maintainers = with lib.maintainers; [ n0emis raitobezarius ];
|
|
|
|
eol = true;
|
|
|
|
};
|
2022-08-12 12:06:08 +00:00
|
|
|
|
2023-04-12 12:48:02 +00:00
|
|
|
netbox = callPackage generic {
|
2023-08-04 22:07:22 +00:00
|
|
|
version = "3.5.6";
|
|
|
|
hash = "sha256-n5EJQcC5uVoL5KjGzF7bLF8c4Wke/YBJpx2V9KZz5Qo=";
|
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 = {
|
|
|
|
inherit (nixosTests) netbox;
|
2022-04-03 18:54:34 +00:00
|
|
|
};
|
|
|
|
|
2023-04-12 12:48:02 +00:00
|
|
|
maintainers = with lib.maintainers; [ minijackson n0emis raitobezarius ];
|
|
|
|
};
|
|
|
|
}
|