nixpkgs-suyu/pkgs/servers/web-apps/netbox/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
1.2 KiB
Nix
Raw Normal View History

{ lib, nixosTests, callPackage, fetchpatch }:
2022-03-05 19:24:57 +01:00
let
generic = import ./generic.nix;
2022-03-05 19:24:57 +01:00
in
{
netbox_3_3 = callPackage generic {
2023-04-04 11:43:26 +02:00
version = "3.3.10";
hash = "sha256-MeOfTU5IxNDoUh7FyvwAQNRC/CE0R6p40WnlF+3RuxA=";
extraPatches = [
2022-03-05 19:24:57 +01:00
# Allow setting the STATIC_ROOT from within the configuration and setting a custom redis URL
./config_3_3.patch
./graphql-3_2_0.patch
# fix compatibility ith django 4.1
(fetchpatch {
url = "https://github.com/netbox-community/netbox/pull/10341/commits/ce6bf9e5c1bc08edc80f6ea1e55cf1318ae6e14b.patch";
sha256 = "sha256-aCPQp6k7Zwga29euASAd+f13hIcZnIUu3RPAzNPqgxc=";
})
2022-03-05 19:24:57 +01:00
];
tests.netbox = nixosTests.netbox_3_3;
maintainers = with lib.maintainers; [ n0emis raitobezarius ];
eol = true;
};
netbox = callPackage generic {
2023-06-06 14:52:51 +02:00
version = "3.5.3";
hash = "sha256-F8rsTOOxARI3ll545AF0+HFaG4wNO+RWwsl5y9kAyE4=";
extraPatches = [
# Allow setting the STATIC_ROOT from within the configuration and setting a custom redis URL
./config.patch
];
tests = {
inherit (nixosTests) netbox;
2022-03-05 19:24:57 +01:00
};
maintainers = with lib.maintainers; [ minijackson n0emis raitobezarius ];
};
}