diff options
Diffstat (limited to 'nixpkgs/pkgs/servers/web-apps/netbox/default.nix')
-rw-r--r-- | nixpkgs/pkgs/servers/web-apps/netbox/default.nix | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/servers/web-apps/netbox/default.nix b/nixpkgs/pkgs/servers/web-apps/netbox/default.nix new file mode 100644 index 000000000000..494513648c9b --- /dev/null +++ b/nixpkgs/pkgs/servers/web-apps/netbox/default.nix @@ -0,0 +1,38 @@ +{ lib, nixosTests, callPackage, }: +let + generic = import ./generic.nix; +in +lib.fix (self: { + netbox = self.netbox_3_7; + + netbox_3_6 = callPackage generic { + version = "3.6.9"; + hash = "sha256-R/hcBKrylW3GnEy10DkrLVr8YJtsSCvCP9H9LhafO9I="; + 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; + }; + + maintainers = with lib.maintainers; [ minijackson n0emis raitobezarius ]; + eol = true; + }; + + netbox_3_7 = callPackage generic { + version = "3.7.3"; + hash = "sha256-8apjw3mO3RKT/IgJOG1+2GSjNwFhddZ9rIChdP26leE="; + 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 ]; + }; +}) |