1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 18:21:07 +01:00

catullus: add libcoap

This commit is contained in:
Kierán Meinhardt
2019-06-01 22:13:58 +02:00
parent 6ebd636f94
commit b54497332b
3 changed files with 44 additions and 20 deletions

29
packages/libcoap.nix Normal file
View File

@@ -0,0 +1,29 @@
{ fetchFromGitHub, automake, autoconf, which, libtool, stdenv }:
stdenv.mkDerivation {
name = "libcoap";
src = fetchFromGitHub {
repo = "libcoap";
owner = "obgm";
rev = "25863042ae1e95138776f65c772f9fa6ce60495c";
fetchSubmodules = true;
sha256 = "1nic584jwkndg0w831h0fnxk0zx0apf2lw5md079m3di7zcxs6bw";
};
buildInputs = [
automake
autoconf
which
libtool
];
preConfigure = ''./autogen.sh'';
configureFlags = [
"--disable-documentation"
"--disable-shared"
];
meta = with stdenv.lib; {
homepage = https://github.com/obgm/libcoap;
description = "A CoAP (RFC 7252) implementation in C";
platforms = platforms.linux;
license = licenses.bsd2;
maintainers = [ maintainers.kmein ];
};
}

View File

@@ -8,30 +8,18 @@ let
in {
imports = [
./hardware-configuration.nix
<system/containers.nix>
./containers.nix
<configs/save-space.nix>
<configs/nixpkgs-unstable.nix>
<modules/retiolum.nix>
<modules/telegram-bot.nix>
<configs/distrobump.nix>
{
sound.enable = true;
sound.extraConfig = ''
defaults.ctl.card 1
defaults.pcm.card 1
'';
hardware.pulseaudio = {
enable = true;
systemWide = true;
package = pkgs.pulseaudioFull;
};
users.users.root.extraGroups = [ "audio" ];
}
];
nixpkgs.config.packageOverrides = pkgs: {
libcoap = pkgs.callPackage <packages/libcoap.nix> {};
};
boot.loader.grub.enable = false;
boot.loader.generic-extlinux-compatible.enable = true;
@@ -48,7 +36,14 @@ in {
environment.variables.HTOPRC = toString <dot/htoprc>;
programs.tmux.enable = true;
environment.systemPackages = with pkgs; [ git vim htop wget ];
environment.systemPackages = with pkgs; [
git
vim
htop
wget
libcoap
];
users.mutableUsers = false;

View File

@@ -3,8 +3,8 @@ let
telebots-package = pkgs.fetchFromGitHub {
owner = "kmein";
repo = "telebots";
rev = "aaf9d3efe1b97234ad2c941c622ce9ee3b28a6a6";
sha256 = "0fvhgzy42khxv8j4v2flgphcr0fg6yrp9857c7zn1mic6cwwnyw5";
rev = "b4276155114ee96cd3f320e361e52952ea700db6";
sha256 = "08rp1pcisk4zzhxdlgrlhxa0sbza5qhxa70rjycg4r7fmixkkbz2";
};
proverb-bot-package = pkgs.fetchFromGitHub {
owner = "kmein";