Merge pull request #236116 from Janik-Haag/netbox2netshot

netbox2netshot: init at 0.1.12
This commit is contained in:
Emily 2023-06-15 18:46:09 +02:00 committed by GitHub
commit e6272819a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 42 additions and 0 deletions

View File

@ -0,0 +1,40 @@
{ lib
, rustPlatform
, fetchFromGitHub
, pkg-config
, openssl
, stdenv
, darwin
}:
rustPlatform.buildRustPackage rec {
pname = "netbox2netshot";
version = "0.1.12";
src = fetchFromGitHub {
owner = "scaleway";
repo = "netbox2netshot";
rev = version;
hash = "sha256-PT/eQBe0CX1l6tcC5QBiXKGWgIQ8s4h6IApeWyb8ysc=";
};
cargoHash = "sha256-/T+6cjWG8u/Mr8gtBOXbEEZOO0pDykEpNIVTgooAmuw=";
nativeBuildInputs = [
pkg-config
];
buildInputs = [
openssl
] ++ lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.CoreFoundation
darwin.apple_sdk.frameworks.Security
];
meta = with lib; {
description = "Inventory synchronization tool between Netbox and Netshot";
homepage = "https://github.com/scaleway/netbox2netshot";
license = licenses.asl20;
maintainers = with maintainers; [ janik ];
};
}

View File

@ -10451,6 +10451,8 @@ with pkgs;
inherit (callPackage ../servers/web-apps/netbox { })
netbox_3_3 netbox;
netbox2netshot = callPackage ../tools/admin/netbox2netshot { };
netcat = libressl.nc;
netcat-gnu = callPackage ../tools/networking/netcat { };