{ pkgs ? import {} }: with pkgs; let libcoap-with-dtls = libcoap.overrideAttrs (oldAttrs: { configureFlags = oldAttrs.configureFlags ++ [ "--enable-dtls" ]; buildInputs = [ openssl ]; }); in stdenv.mkDerivation { pname = "tradfri.nim"; version = "0.1.0"; nativeBuildInputs = [ nim libcoap-with-dtls ]; #NIX_ENFORCE_PURITY = 0; #NIX_HARDENING_ENABLE = 0; }