at 23.11-beta 31 lines 811 B view raw
1{ lib, stdenv, fetchFromGitHub }: 2 3stdenv.mkDerivation rec { 4 pname = "bacnet-stack"; 5 version = "1.3.1"; 6 7 src = fetchFromGitHub { 8 owner = "bacnet-stack"; 9 repo = "bacnet-stack"; 10 rev = "bacnet-stack-${version}"; 11 sha256 = "sha256-Uq55zrcP8jBKklmT2AZfL8gkplm/wwSDAh/yXd1jydc="; 12 }; 13 14 hardeningDisable = [ "all" ]; 15 16 buildPhase = '' 17 make BUILD=debug BACNET_PORT=linux BACDL_DEFINE=-DBACDL_BIP=1 BACNET_DEFINES=" -DPRINT_ENABLED=1 -DBACFILE -DBACAPP_ALL -DBACNET_PROPERTY_LISTS" 18 ''; 19 20 installPhase = '' 21 mkdir $out 22 cp -r bin $out/bin 23 ''; 24 25 meta = with lib; { 26 description = "BACnet open source protocol stack for embedded systems, Linux, and Windows"; 27 platforms = platforms.linux; 28 license = licenses.gpl2; 29 maintainers = with maintainers; [ WhittlesJr ]; 30 }; 31}