summaryrefslogtreecommitdiffstats
path: root/shell.nix
diff options
context:
space:
mode:
Diffstat (limited to 'shell.nix')
-rw-r--r--shell.nix17
1 files changed, 17 insertions, 0 deletions
diff --git a/shell.nix b/shell.nix
new file mode 100644
index 0000000..d38f3fe
--- /dev/null
+++ b/shell.nix
@@ -0,0 +1,17 @@
+{ pkgs ? import <nixpkgs> {} }:
+
+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;
+}