nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5}:
6
7stdenv.mkDerivation (finalAttrs: {
8 pname = "bacnet-stack";
9 version = "1.3.5";
10
11 src = fetchFromGitHub {
12 owner = "bacnet-stack";
13 repo = "bacnet-stack";
14 rev = "bacnet-stack-${finalAttrs.version}";
15 sha256 = "sha256-Iwo0bNulKdFNwNU2xj6Uin+5hQt1I3N6+zso5BHrIOU=";
16 };
17
18 hardeningDisable = [ "all" ];
19
20 buildPhase = ''
21 make BUILD=debug BACNET_PORT=linux BACDL_DEFINE=-DBACDL_BIP=1 BACNET_DEFINES=" -DPRINT_ENABLED=1 -DBACFILE -DBACAPP_ALL -DBACNET_PROPERTY_LISTS"
22 '';
23
24 installPhase = ''
25 mkdir $out
26 cp -r bin $out/bin
27 '';
28
29 meta = {
30 description = "BACnet open source protocol stack for embedded systems, Linux, and Windows";
31 platforms = lib.platforms.linux;
32 license = lib.licenses.gpl2Plus;
33 maintainers = with lib.maintainers; [ WhittlesJr ];
34 };
35})