1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 10:11:08 +01:00

fix(libcoap): re-enable traadfri

This commit is contained in:
2021-06-03 09:14:36 +02:00
parent 118dcf3046
commit d67f501452
4 changed files with 21 additions and 12 deletions

View File

@@ -241,7 +241,7 @@ in {
./theming.nix
./tmux.nix
./tor.nix
# ./traadfri.nix
./traadfri.nix
./unclutter.nix
./version.nix
./vscode.nix

View File

@@ -6,8 +6,8 @@ let
traadfri-package = pkgs.fetchFromGitHub {
owner = "kmein";
repo = "traadfri";
rev = "7b30d404ecd2d9ff06c60ed33967448e8c2f42f5";
sha256 = "1ff37k86vi7bnng3vna8myfkyqbkg25w6ds7gl94m4hax8wikz26";
rev = "6385d5b9e79910b4caee876536176cf9d6a8b9cc";
sha256 = "1l0vsxf4f4k9hgqa8sjkq4pgidbhpwps8lr3dvvnwnjh5636pbs9";
};
in pkgs.python3Packages.callPackage traadfri-package {
libcoap = pkgs.callPackage <niveum/packages/libcoap.nix> { tls = true; };

View File

@@ -1,18 +1,27 @@
{ lib, fetchFromGitHub, automake, autoconf, which, libtool, stdenv, gnutls
, tls ? false }:
{ lib, pkg-config, fetchFromGitHub, automake, autoconf, which, libtool, stdenv, gnutls
, doxygen, asciidoc
, tls ? false, docs ? true }:
stdenv.mkDerivation {
name = "libcoap";
version = "unstable-2021-05-28";
src = fetchFromGitHub {
repo = "libcoap";
owner = "obgm";
rev = "25863042ae1e95138776f65c772f9fa6ce60495c";
sha256 = "1nic584jwkndg0w831h0fnxk0zx0apf2lw5md079m3di7zcxs6bw";
rev = "62b2be4da1d0fdf4b7217487ee83dc5920174425";
sha256 = "1igjv0hbwmakdccp5in4gw9w2p5swxdwsdx0glyna2s29sh1d37x";
fetchSubmodules = true;
};
buildInputs = [ automake autoconf which libtool ] ++ lib.optional tls gnutls;
preConfigure = "./autogen.sh";
configureFlags = [ "--disable-documentation" "--disable-shared" ]
++ lib.optional tls "--enable-dtls";
buildInputs = [ which pkg-config automake autoconf libtool ]
++ lib.optionals docs [ doxygen asciidoc ]
++ lib.optional tls gnutls;
# preConfigure = "./autogen.sh";
# configureFlags = lib.optional (!docs) "--disable-documentation" ++ lib.optional tls "--enable-dtls";
configurePhase = ''
./autogen.sh || :
./configure --enable-dtls --prefix=$out
'';
buildPhase = "make";
installPhase = "make install";
meta = with lib; {
homepage = "https://github.com/obgm/libcoap";
description = "A CoAP (RFC 7252) implementation in C";

View File

@@ -13,7 +13,7 @@ in {
<niveum/configs/wifi.nix>
<niveum/configs/tmux.nix>
<niveum/configs/version.nix>
# <niveum/configs/traadfri.nix>
<niveum/configs/traadfri.nix>
<niveum/modules/retiolum.nix>
];