mirror of
https://github.com/kmein/niveum
synced 2026-03-21 12:21:08 +01:00
catullus: add libcoap
This commit is contained in:
29
packages/libcoap.nix
Normal file
29
packages/libcoap.nix
Normal 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 ];
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -8,30 +8,18 @@ let
|
|||||||
in {
|
in {
|
||||||
imports = [
|
imports = [
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
<system/containers.nix>
|
./containers.nix
|
||||||
<configs/save-space.nix>
|
<configs/save-space.nix>
|
||||||
<configs/nixpkgs-unstable.nix>
|
<configs/nixpkgs-unstable.nix>
|
||||||
<modules/retiolum.nix>
|
<modules/retiolum.nix>
|
||||||
<modules/telegram-bot.nix>
|
<modules/telegram-bot.nix>
|
||||||
<configs/distrobump.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.grub.enable = false;
|
||||||
boot.loader.generic-extlinux-compatible.enable = true;
|
boot.loader.generic-extlinux-compatible.enable = true;
|
||||||
|
|
||||||
@@ -48,7 +36,14 @@ in {
|
|||||||
environment.variables.HTOPRC = toString <dot/htoprc>;
|
environment.variables.HTOPRC = toString <dot/htoprc>;
|
||||||
|
|
||||||
programs.tmux.enable = true;
|
programs.tmux.enable = true;
|
||||||
environment.systemPackages = with pkgs; [ git vim htop wget ];
|
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
git
|
||||||
|
vim
|
||||||
|
htop
|
||||||
|
wget
|
||||||
|
libcoap
|
||||||
|
];
|
||||||
|
|
||||||
users.mutableUsers = false;
|
users.mutableUsers = false;
|
||||||
|
|
||||||
|
|||||||
@@ -3,8 +3,8 @@ let
|
|||||||
telebots-package = pkgs.fetchFromGitHub {
|
telebots-package = pkgs.fetchFromGitHub {
|
||||||
owner = "kmein";
|
owner = "kmein";
|
||||||
repo = "telebots";
|
repo = "telebots";
|
||||||
rev = "aaf9d3efe1b97234ad2c941c622ce9ee3b28a6a6";
|
rev = "b4276155114ee96cd3f320e361e52952ea700db6";
|
||||||
sha256 = "0fvhgzy42khxv8j4v2flgphcr0fg6yrp9857c7zn1mic6cwwnyw5";
|
sha256 = "08rp1pcisk4zzhxdlgrlhxa0sbza5qhxa70rjycg4r7fmixkkbz2";
|
||||||
};
|
};
|
||||||
proverb-bot-package = pkgs.fetchFromGitHub {
|
proverb-bot-package = pkgs.fetchFromGitHub {
|
||||||
owner = "kmein";
|
owner = "kmein";
|
||||||
|
|||||||
Reference in New Issue
Block a user