Merge master into staging-next
This commit is contained in:
commit
d0cc21f4bd
@ -764,7 +764,7 @@
|
|||||||
keys = [{
|
keys = [{
|
||||||
longkeyid = "rsa4096/0xAAA50652F0479205";
|
longkeyid = "rsa4096/0xAAA50652F0479205";
|
||||||
fingerprint = "BF8B F725 DA30 E53E 7F11 4ED8 AAA5 0652 F047 9205";
|
fingerprint = "BF8B F725 DA30 E53E 7F11 4ED8 AAA5 0652 F047 9205";
|
||||||
}];
|
}];
|
||||||
};
|
};
|
||||||
ar1a = {
|
ar1a = {
|
||||||
email = "aria@ar1as.space";
|
email = "aria@ar1as.space";
|
||||||
@ -5331,7 +5331,7 @@
|
|||||||
github = "kho-dialga";
|
github = "kho-dialga";
|
||||||
githubId = 55767703;
|
githubId = 55767703;
|
||||||
name = "Iván Brito";
|
name = "Iván Brito";
|
||||||
};
|
};
|
||||||
khumba = {
|
khumba = {
|
||||||
email = "bog@khumba.net";
|
email = "bog@khumba.net";
|
||||||
github = "khumba";
|
github = "khumba";
|
||||||
@ -6026,8 +6026,8 @@
|
|||||||
githubId = 7243783;
|
githubId = 7243783;
|
||||||
name = "Bernardo Meurer";
|
name = "Bernardo Meurer";
|
||||||
keys = [{
|
keys = [{
|
||||||
longkeyid = "rsa4096/0xF4C0D53B8D14C246";
|
longkeyid = "rsa4096/0xF4C0D53B8D14C246";
|
||||||
fingerprint = "F193 7596 57D5 6DA4 CCD4 786B F4C0 D53B 8D14 C246";
|
fingerprint = "F193 7596 57D5 6DA4 CCD4 786B F4C0 D53B 8D14 C246";
|
||||||
}];
|
}];
|
||||||
};
|
};
|
||||||
lowfatcomputing = {
|
lowfatcomputing = {
|
||||||
@ -8247,12 +8247,10 @@
|
|||||||
github = "poscat0x04";
|
github = "poscat0x04";
|
||||||
githubId = 53291983;
|
githubId = 53291983;
|
||||||
name = "Poscat Tarski";
|
name = "Poscat Tarski";
|
||||||
keys = [
|
keys = [{
|
||||||
{
|
longkeyid = "rsa4096/2D2595A00D08ACE0";
|
||||||
longkeyid = "rsa4096/2D2595A00D08ACE0";
|
fingerprint = "48AD DE10 F27B AFB4 7BB0 CCAF 2D25 95A0 0D08 ACE0";
|
||||||
fingerprint = "48AD DE10 F27B AFB4 7BB0 CCAF 2D25 95A0 0D08 ACE0";
|
}];
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
pradeepchhetri = {
|
pradeepchhetri = {
|
||||||
email = "pradeep.chhetri89@gmail.com";
|
email = "pradeep.chhetri89@gmail.com";
|
||||||
@ -9344,6 +9342,16 @@
|
|||||||
fingerprint = "A317 37B3 693C 921B 480C C629 4A2A AAA3 82F8 294C";
|
fingerprint = "A317 37B3 693C 921B 480C C629 4A2A AAA3 82F8 294C";
|
||||||
}];
|
}];
|
||||||
};
|
};
|
||||||
|
seylerius = {
|
||||||
|
name = "Sable Seyler";
|
||||||
|
email = "sable@seyleri.us";
|
||||||
|
github = "seylerius";
|
||||||
|
githubId = 1145981;
|
||||||
|
keys = [{
|
||||||
|
longkeyid = "rsa4096/0xDC26B921A9E9DBDE";
|
||||||
|
fingerprint = "7246 B6E1 ABB9 9A48 4395 FD11 DC26 B921 A9E9 DBDE";
|
||||||
|
}];
|
||||||
|
};
|
||||||
sfrijters = {
|
sfrijters = {
|
||||||
email = "sfrijters@gmail.com";
|
email = "sfrijters@gmail.com";
|
||||||
github = "sfrijters";
|
github = "sfrijters";
|
||||||
@ -9869,10 +9877,10 @@
|
|||||||
name = "Felix Bühler";
|
name = "Felix Bühler";
|
||||||
};
|
};
|
||||||
stupremee = {
|
stupremee = {
|
||||||
email = "jutus.k@protonmail.com";
|
email = "jutus.k@protonmail.com";
|
||||||
github = "Stupremee";
|
github = "Stupremee";
|
||||||
githubId = 39732259;
|
githubId = 39732259;
|
||||||
name = "Justus K";
|
name = "Justus K";
|
||||||
};
|
};
|
||||||
SubhrajyotiSen = {
|
SubhrajyotiSen = {
|
||||||
email = "subhrajyoti12@gmail.com";
|
email = "subhrajyoti12@gmail.com";
|
||||||
|
@ -268,6 +268,52 @@ in {
|
|||||||
"CAP_NET_BIND_SERVICE"
|
"CAP_NET_BIND_SERVICE"
|
||||||
"CAP_NET_RAW"
|
"CAP_NET_RAW"
|
||||||
]));
|
]));
|
||||||
|
componentsUsingBluetooth = [
|
||||||
|
# Components that require the AF_BLUETOOTH address family
|
||||||
|
"bluetooth_tracker"
|
||||||
|
"bluetooth_le_tracker"
|
||||||
|
];
|
||||||
|
componentsUsingSerialDevices = [
|
||||||
|
# Components that require access to serial devices (/dev/tty*)
|
||||||
|
# List generated from home-assistant documentation:
|
||||||
|
# git clone https://github.com/home-assistant/home-assistant.io/
|
||||||
|
# cd source/_integrations
|
||||||
|
# rg "/dev/tty" -l | cut -d'/' -f3 | cut -d'.' -f1 | sort
|
||||||
|
# And then extended by references found in the source code, these
|
||||||
|
# mostly the ones using config flows already.
|
||||||
|
"acer_projector"
|
||||||
|
"alarmdecoder"
|
||||||
|
"arduino"
|
||||||
|
"blackbird"
|
||||||
|
"dsmr"
|
||||||
|
"edl21"
|
||||||
|
"elkm1"
|
||||||
|
"elv"
|
||||||
|
"enocean"
|
||||||
|
"firmata"
|
||||||
|
"flexit"
|
||||||
|
"gpsd"
|
||||||
|
"insteon"
|
||||||
|
"kwb"
|
||||||
|
"lacrosse"
|
||||||
|
"mhz19"
|
||||||
|
"modbus"
|
||||||
|
"modem_callerid"
|
||||||
|
"mysensors"
|
||||||
|
"nad"
|
||||||
|
"numato"
|
||||||
|
"rflink"
|
||||||
|
"rfxtrx"
|
||||||
|
"scsgate"
|
||||||
|
"serial"
|
||||||
|
"serial_pm"
|
||||||
|
"sms"
|
||||||
|
"upb"
|
||||||
|
"velbus"
|
||||||
|
"w800rf32"
|
||||||
|
"xbee"
|
||||||
|
"zha"
|
||||||
|
];
|
||||||
in {
|
in {
|
||||||
ExecStart = "${package}/bin/hass --runner --config '${cfg.configDir}'";
|
ExecStart = "${package}/bin/hass --runner --config '${cfg.configDir}'";
|
||||||
ExecReload = "${pkgs.coreutils}/bin/kill -HUP $MAINPID";
|
ExecReload = "${pkgs.coreutils}/bin/kill -HUP $MAINPID";
|
||||||
@ -281,11 +327,11 @@ in {
|
|||||||
# Hardening
|
# Hardening
|
||||||
AmbientCapabilities = capabilities;
|
AmbientCapabilities = capabilities;
|
||||||
CapabilityBoundingSet = capabilities;
|
CapabilityBoundingSet = capabilities;
|
||||||
DeviceAllow = [
|
DeviceAllow = (optionals (any useComponent componentsUsingSerialDevices) [
|
||||||
"char-ttyACM rw"
|
"char-ttyACM rw"
|
||||||
"char-ttyAMA rw"
|
"char-ttyAMA rw"
|
||||||
"char-ttyUSB rw"
|
"char-ttyUSB rw"
|
||||||
];
|
]);
|
||||||
DevicePolicy = "closed";
|
DevicePolicy = "closed";
|
||||||
LockPersonality = true;
|
LockPersonality = true;
|
||||||
MemoryDenyWriteExecute = true;
|
MemoryDenyWriteExecute = true;
|
||||||
@ -314,13 +360,15 @@ in {
|
|||||||
"AF_INET6"
|
"AF_INET6"
|
||||||
"AF_NETLINK"
|
"AF_NETLINK"
|
||||||
"AF_UNIX"
|
"AF_UNIX"
|
||||||
] ++ optionals (useComponent "bluetooth_tracker" || useComponent "bluetooth_le_tracker") [
|
] ++ optionals (any useComponent componentsUsingBluetooth) [
|
||||||
"AF_BLUETOOTH"
|
"AF_BLUETOOTH"
|
||||||
];
|
];
|
||||||
RestrictNamespaces = true;
|
RestrictNamespaces = true;
|
||||||
RestrictRealtime = true;
|
RestrictRealtime = true;
|
||||||
RestrictSUIDSGID = true;
|
RestrictSUIDSGID = true;
|
||||||
SupplementaryGroups = [ "dialout" ];
|
SupplementaryGroups = optionals (any useComponent componentsUsingSerialDevices) [
|
||||||
|
"dialout"
|
||||||
|
];
|
||||||
SystemCallArchitectures = "native";
|
SystemCallArchitectures = "native";
|
||||||
SystemCallFilter = [
|
SystemCallFilter = [
|
||||||
"@system-service"
|
"@system-service"
|
||||||
|
@ -45,6 +45,7 @@ in {
|
|||||||
payload_on = "let_there_be_light";
|
payload_on = "let_there_be_light";
|
||||||
payload_off = "off";
|
payload_off = "off";
|
||||||
}];
|
}];
|
||||||
|
# tests component-based capability assignment (CAP_NET_BIND_SERVICE)
|
||||||
emulated_hue = {
|
emulated_hue = {
|
||||||
host_ip = "127.0.0.1";
|
host_ip = "127.0.0.1";
|
||||||
listen_port = 80;
|
listen_port = 80;
|
||||||
@ -100,6 +101,7 @@ in {
|
|||||||
assert "let_there_be_light" in output_log
|
assert "let_there_be_light" in output_log
|
||||||
|
|
||||||
with subtest("Check systemd unit hardening"):
|
with subtest("Check systemd unit hardening"):
|
||||||
|
hass.log(hass.succeed("systemctl show home-assistant.service"))
|
||||||
hass.log(hass.succeed("systemd-analyze security home-assistant.service"))
|
hass.log(hass.succeed("systemd-analyze security home-assistant.service"))
|
||||||
'';
|
'';
|
||||||
})
|
})
|
||||||
|
@ -8,13 +8,13 @@
|
|||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "bosh-cli";
|
pname = "bosh-cli";
|
||||||
|
|
||||||
version = "6.4.3";
|
version = "6.4.4";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "cloudfoundry";
|
owner = "cloudfoundry";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "1glxwk0fv52rjim7ihcxkjx19fsn9k7gzg9zmwxgx8wpsjrdcq3f";
|
sha256 = "sha256-N7GrxePNewxhHnkQP/XBdUIEL5FsFD4avouZaIO+BKc=";
|
||||||
};
|
};
|
||||||
vendorSha256 = null;
|
vendorSha256 = null;
|
||||||
|
|
||||||
|
@ -16,12 +16,12 @@ with lib;
|
|||||||
|
|
||||||
buildGoPackage rec {
|
buildGoPackage rec {
|
||||||
pname = "gitea";
|
pname = "gitea";
|
||||||
version = "1.14.2";
|
version = "1.14.3";
|
||||||
|
|
||||||
# not fetching directly from the git repo, because that lacks several vendor files for the web UI
|
# not fetching directly from the git repo, because that lacks several vendor files for the web UI
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://github.com/go-gitea/gitea/releases/download/v${version}/gitea-src-${version}.tar.gz";
|
url = "https://github.com/go-gitea/gitea/releases/download/v${version}/gitea-src-${version}.tar.gz";
|
||||||
sha256 = "sha256-0EvKk0/ro1YAqvc5yCt8vn2LkRoIbXrFTwcQtomoWsM=";
|
sha256 = "sha256-ieQxqZO84sYBcCzWYn40tRGLgSs2PpLlcNkI4vFq+wE=";
|
||||||
};
|
};
|
||||||
|
|
||||||
unpackPhase = ''
|
unpackPhase = ''
|
||||||
|
@ -1,27 +1,53 @@
|
|||||||
{ lib, stdenv, fetchurl, fetchFromGitHub
|
{ lib, stdenv, fetchFromGitHub, llvmPackages, ncurses, cmake, libxml2
|
||||||
, llvmPackages, ncurses, lua
|
, symlinkJoin, breakpointHook, cudaPackages, enableCUDA ? false }:
|
||||||
}:
|
|
||||||
|
|
||||||
let
|
let
|
||||||
luajitArchive = "LuaJIT-2.0.5.tar.gz";
|
luajitRev = "9143e86498436892cb4316550be4d45b68a61224";
|
||||||
luajitSrc = fetchurl {
|
luajitBase = "LuaJIT-${luajitRev}";
|
||||||
url = "http://luajit.org/download/${luajitArchive}";
|
luajitArchive = "${luajitBase}.tar.gz";
|
||||||
sha256 = "0yg9q4q6v028bgh85317ykc9whgxgysp76qzaqgq55y6jy11yjw7";
|
luajitSrc = fetchFromGitHub {
|
||||||
|
owner = "LuaJIT";
|
||||||
|
repo = "LuaJIT";
|
||||||
|
rev = luajitRev;
|
||||||
|
sha256 = "1zw1yr0375d6jr5x20zvkvk76hkaqamjynbswpl604w6r6id070b";
|
||||||
};
|
};
|
||||||
in
|
|
||||||
stdenv.mkDerivation rec {
|
llvmMerged = symlinkJoin {
|
||||||
|
name = "llvmClangMerged";
|
||||||
|
paths = with llvmPackages; [
|
||||||
|
llvm.out
|
||||||
|
llvm.dev
|
||||||
|
llvm.lib
|
||||||
|
clang-unwrapped.out
|
||||||
|
clang-unwrapped.dev
|
||||||
|
clang-unwrapped.lib
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
cuda = cudaPackages.cudatoolkit_11;
|
||||||
|
|
||||||
|
clangVersion = llvmPackages.clang-unwrapped.version;
|
||||||
|
|
||||||
|
in stdenv.mkDerivation rec {
|
||||||
pname = "terra";
|
pname = "terra";
|
||||||
version = "1.0.0pre1175_${builtins.substring 0 7 src.rev}";
|
version = "1.0.0-beta3_${builtins.substring 0 7 src.rev}";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "zdevito";
|
owner = "terralang";
|
||||||
repo = "terra";
|
repo = "terra";
|
||||||
rev = "ef6a75ffee15a30f3c74f4e6943851cfbc0fec3d";
|
rev = "99ff93f8c60c89bbe2dc7c63eab9bfe2f4c4833e";
|
||||||
sha256 = "0aky17vbv3d9zng34hp17p9zb00dbzwhvzsdjzrrqvk9lmyvix0s";
|
sha256 = "0ww54xjvv6p8jwsh6hml3v527zgnv2gj58gpb818bbg4k1jwa5fl";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ lua ];
|
nativeBuildInputs = [ cmake ];
|
||||||
buildInputs = with llvmPackages; [ llvm clang-unwrapped ncurses ];
|
buildInputs = [ llvmMerged ncurses libxml2 ] ++ lib.optional enableCUDA cuda;
|
||||||
|
|
||||||
|
cmakeFlags = [
|
||||||
|
"-DHAS_TERRA_VERSION=0"
|
||||||
|
"-DTERRA_VERSION=${version}"
|
||||||
|
"-DTERRA_LUA=luajit"
|
||||||
|
"-DCLANG_RESOURCE_DIR=${llvmMerged}/lib/clang/${clangVersion}"
|
||||||
|
] ++ lib.optional enableCUDA "-DTERRA_ENABLE_CUDA=ON";
|
||||||
|
|
||||||
doCheck = true;
|
doCheck = true;
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
@ -29,40 +55,36 @@ stdenv.mkDerivation rec {
|
|||||||
outputs = [ "bin" "dev" "out" "static" ];
|
outputs = [ "bin" "dev" "out" "static" ];
|
||||||
|
|
||||||
patches = [ ./nix-cflags.patch ];
|
patches = [ ./nix-cflags.patch ];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace Makefile \
|
sed -i '/file(DOWNLOAD "''${LUAJIT_URL}" "''${LUAJIT_TAR}")/d' \
|
||||||
--replace '-lcurses' '-lncurses'
|
cmake/Modules/GetLuaJIT.cmake
|
||||||
|
|
||||||
substituteInPlace src/terralib.lua \
|
substituteInPlace src/terralib.lua \
|
||||||
--subst-var-by NIX_LIBC_INCLUDE ${lib.getDev stdenv.cc.libc}/include
|
--subst-var-by NIX_LIBC_INCLUDE ${lib.getDev stdenv.cc.libc}/include
|
||||||
'';
|
'';
|
||||||
|
|
||||||
preBuild = ''
|
preConfigure = ''
|
||||||
cat >Makefile.inc<<EOF
|
|
||||||
CLANG = ${lib.getBin llvmPackages.clang-unwrapped}/bin/clang
|
|
||||||
LLVM_CONFIG = ${lib.getBin llvmPackages.llvm}/bin/llvm-config
|
|
||||||
EOF
|
|
||||||
|
|
||||||
mkdir -p build
|
mkdir -p build
|
||||||
cp ${luajitSrc} build/${luajitArchive}
|
ln -s ${luajitSrc} build/${luajitBase}
|
||||||
|
tar --mode="a+rwX" -chzf build/${luajitArchive} -C build ${luajitBase}
|
||||||
|
rm build/${luajitBase}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
checkPhase = "(cd tests && ../terra run)";
|
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
install -Dm755 -t $bin/bin release/bin/terra
|
install -Dm755 -t $bin/bin bin/terra
|
||||||
install -Dm755 -t $out/lib release/lib/terra${stdenv.hostPlatform.extensions.sharedLibrary}
|
install -Dm755 -t $out/lib lib/terra${stdenv.hostPlatform.extensions.sharedLibrary}
|
||||||
install -Dm644 -t $static/lib release/lib/libterra.a
|
install -Dm644 -t $static/lib lib/libterra_s.a
|
||||||
|
|
||||||
mkdir -pv $dev/include
|
mkdir -pv $dev/include
|
||||||
cp -rv release/include/terra $dev/include
|
cp -rv include/terra $dev/include
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A low-level counterpart to Lua";
|
description = "A low-level counterpart to Lua";
|
||||||
homepage = "http://terralang.org/";
|
homepage = "http://terralang.org/";
|
||||||
platforms = platforms.x86_64;
|
platforms = platforms.x86_64;
|
||||||
maintainers = with maintainers; [ jb55 thoughtpolice ];
|
maintainers = with maintainers; [ jb55 seylerius thoughtpolice ];
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -1,12 +1,11 @@
|
|||||||
diff --git a/src/terralib.lua b/src/terralib.lua
|
diff --git a/src/terralib.lua b/src/terralib.lua
|
||||||
index 351238d..e638c90 100644
|
index 532ed18..2c265dc 100644
|
||||||
--- a/src/terralib.lua
|
--- a/src/terralib.lua
|
||||||
+++ b/src/terralib.lua
|
+++ b/src/terralib.lua
|
||||||
@@ -3395,6 +3395,17 @@ function terra.includecstring(code,cargs,target)
|
@@ -3426,6 +3426,16 @@ function terra.includecstring(code,cargs,target)
|
||||||
args:insert("-internal-isystem")
|
args:insert("-internal-isystem")
|
||||||
args:insert(path)
|
args:insert(path)
|
||||||
end
|
end
|
||||||
+
|
|
||||||
+ -- NOTE(aseipp): include relevant Nix header files
|
+ -- NOTE(aseipp): include relevant Nix header files
|
||||||
+ args:insert("-isystem")
|
+ args:insert("-isystem")
|
||||||
+ args:insert("@NIX_LIBC_INCLUDE@")
|
+ args:insert("@NIX_LIBC_INCLUDE@")
|
||||||
@ -17,6 +16,6 @@ index 351238d..e638c90 100644
|
|||||||
+ args:insert(w)
|
+ args:insert(w)
|
||||||
+ end
|
+ end
|
||||||
+ end
|
+ end
|
||||||
|
-- Obey the SDKROOT variable on macOS to match Clang behavior.
|
||||||
if cargs then
|
local sdkroot = os.getenv("SDKROOT")
|
||||||
args:insertall(cargs)
|
if sdkroot then
|
||||||
|
39
pkgs/development/guile-modules/guile-json/default.nix
Normal file
39
pkgs/development/guile-modules/guile-json/default.nix
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
{ lib
|
||||||
|
, stdenv
|
||||||
|
, fetchurl
|
||||||
|
, guile
|
||||||
|
, texinfo
|
||||||
|
, pkg-config
|
||||||
|
}:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
pname = "guile-json";
|
||||||
|
version = "4.4.1";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "mirror://savannah/guile-json/${pname}-${version}.tar.gz";
|
||||||
|
sha256 = "sha256-UqZt3pqXQzeHpzEiMvOMKSh1gK/K2KaJ70jMllNxBPc=";
|
||||||
|
};
|
||||||
|
|
||||||
|
postConfigure = ''
|
||||||
|
sed -i '/moddir\s*=/s%=.*%=''${out}/share/guile/site%' Makefile;
|
||||||
|
sed -i '/objdir\s*=/s%=.*%=''${out}/share/guile/ccache%' Makefile;
|
||||||
|
sed -i '/moddir\s*=/s%=.*%=''${out}/share/guile/site/json%' json/Makefile;
|
||||||
|
sed -i '/objdir\s*=/s%=.*%=''${out}/share/guile/ccache/json%' json/Makefile;
|
||||||
|
'';
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
pkg-config texinfo
|
||||||
|
];
|
||||||
|
buildInputs = [
|
||||||
|
guile
|
||||||
|
];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "JSON Bindings for GNU Guile";
|
||||||
|
homepage = "https://savannah.nongnu.org/projects/guile-json";
|
||||||
|
license = licenses.gpl3Plus;
|
||||||
|
maintainers = with maintainers; [ ethancedwards8 ];
|
||||||
|
platforms = platforms.linux;
|
||||||
|
};
|
||||||
|
}
|
21
pkgs/development/libraries/libvori/default.nix
Normal file
21
pkgs/development/libraries/libvori/default.nix
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
{ stdenv, lib, fetchurl, cmake }:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
pname = "libvori";
|
||||||
|
version = "210412";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "https://brehm-research.de/files/${pname}-${version}.tar.gz";
|
||||||
|
sha256 = "1b4hpwibf3k7gl6n984l3wdi0zyl2fmpz84m9g2di4yhm6p8c61k";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [ cmake ];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Library for Voronoi intergration of electron densities";
|
||||||
|
homepage = "https://brehm-research.de/libvori.php";
|
||||||
|
license = with licenses; [ lgpl3Only ];
|
||||||
|
platforms = platforms.unix;
|
||||||
|
maintainers = [ maintainers.sheepforce ];
|
||||||
|
};
|
||||||
|
}
|
33
pkgs/development/python-modules/emulated-roku/default.nix
Normal file
33
pkgs/development/python-modules/emulated-roku/default.nix
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchFromGitHub
|
||||||
|
, aiohttp
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "emulated-roku";
|
||||||
|
version = "0.2.1";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "mindigmarton";
|
||||||
|
repo = "emulated_roku";
|
||||||
|
rev = version;
|
||||||
|
sha256 = "02cbg5wrph19p6x44jlw6cn3jli0kwbgfh6klb3c4k5jfrkhgghw";
|
||||||
|
};
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
aiohttp
|
||||||
|
];
|
||||||
|
|
||||||
|
# no tests implemented
|
||||||
|
doCheck = false;
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "emulated_roku" ];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Library to emulate a roku server to serve as a proxy for remotes such as Harmony";
|
||||||
|
homepage = "https://github.com/mindigmarton/emulated_roku";
|
||||||
|
license = licenses.mit;
|
||||||
|
maintainers = with maintainers; [ dotlambda ];
|
||||||
|
};
|
||||||
|
}
|
51
pkgs/development/python-modules/enocean/default.nix
Normal file
51
pkgs/development/python-modules/enocean/default.nix
Normal file
@ -0,0 +1,51 @@
|
|||||||
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchFromGitHub
|
||||||
|
, beautifulsoup4
|
||||||
|
, enum-compat
|
||||||
|
, pyserial
|
||||||
|
, nose
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "enocean";
|
||||||
|
version = "0.60.1";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "kipe";
|
||||||
|
repo = "enocean";
|
||||||
|
rev = version;
|
||||||
|
sha256 = "0cbcvvy3qaqv8925z608qmkc1l914crzw79krwrz2vpm2fyribab";
|
||||||
|
};
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
beautifulsoup4
|
||||||
|
enum-compat
|
||||||
|
pyserial
|
||||||
|
];
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
nose
|
||||||
|
];
|
||||||
|
|
||||||
|
checkPhase = ''
|
||||||
|
runHook preCheck
|
||||||
|
|
||||||
|
nosetests
|
||||||
|
|
||||||
|
runHook postCheck
|
||||||
|
'';
|
||||||
|
|
||||||
|
pythonImportsCheck = [
|
||||||
|
"enocean.communicators"
|
||||||
|
"enocean.protocol.packet"
|
||||||
|
"enocean.utils"
|
||||||
|
];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "EnOcean serial protocol implementation";
|
||||||
|
homepage = "https://github.com/kipe/enocean";
|
||||||
|
license = licenses.mit;
|
||||||
|
maintainers = with maintainers; [ dotlambda ];
|
||||||
|
};
|
||||||
|
}
|
@ -1,5 +1,6 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
|
, fetchpatch
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, isPy27
|
, isPy27
|
||||||
# Python deps
|
# Python deps
|
||||||
@ -28,6 +29,14 @@ buildPythonPackage rec {
|
|||||||
sha256 = "4b2acd6802a04b59e306d0a6ccf37701d24376f4dc044bbbafba3afdf9d3389a";
|
sha256 = "4b2acd6802a04b59e306d0a6ccf37701d24376f4dc044bbbafba3afdf9d3389a";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
(fetchpatch {
|
||||||
|
name = "Support-SQLAlchemy-1.4x.patch";
|
||||||
|
url = "https://github.com/pecan/pecan/commit/a520bd544c0b02a02dbf692b8d6e2f7a503ee6d4.patch";
|
||||||
|
sha256 = "sha256-QCHRjwnpy8ndCvcuyE5Y65BybKYthJXDySUtmpJD8gY=";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
logutils
|
logutils
|
||||||
Mako
|
Mako
|
||||||
@ -51,8 +60,9 @@ buildPythonPackage rec {
|
|||||||
];
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Pecan";
|
description = "WSGI object-dispatching web framework, designed to be lean and fast";
|
||||||
homepage = "http://www.pecanpy.org/";
|
homepage = "https://www.pecanpy.org/";
|
||||||
changelog = "https://pecan.readthedocs.io/en/latest/changes.html";
|
changelog = "https://pecan.readthedocs.io/en/latest/changes.html";
|
||||||
|
maintainers = with maintainers; [ applePrincess ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "pytest-subprocess";
|
pname = "pytest-subprocess";
|
||||||
version = "1.1.0";
|
version = "1.1.1";
|
||||||
|
|
||||||
disabled = pythonOlder "3.6";
|
disabled = pythonOlder "3.6";
|
||||||
|
|
||||||
@ -18,7 +18,7 @@ buildPythonPackage rec {
|
|||||||
owner = "aklajnert";
|
owner = "aklajnert";
|
||||||
repo = "pytest-subprocess";
|
repo = "pytest-subprocess";
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "sha256-r6WNDdvZAHMG1kPtLJlCwvhbVG1gC1NEvRfta+Chxnk=";
|
sha256 = "sha256-o8wDZhNHGPV1BQ5Zi2kFNlWq5w0cqebaJUhUUwTK6So=";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
@ -31,10 +31,6 @@ buildPythonPackage rec {
|
|||||||
pygments
|
pygments
|
||||||
];
|
];
|
||||||
|
|
||||||
disabledTests = [
|
|
||||||
"test_multiple_wait" # https://github.com/aklajnert/pytest-subprocess/issues/36
|
|
||||||
];
|
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A plugin to fake subprocess for pytest";
|
description = "A plugin to fake subprocess for pytest";
|
||||||
homepage = "https://github.com/aklajnert/pytest-subprocess";
|
homepage = "https://github.com/aklajnert/pytest-subprocess";
|
||||||
|
@ -223,9 +223,9 @@
|
|||||||
"emonitor" = ps: with ps; [ aioemonitor ];
|
"emonitor" = ps: with ps; [ aioemonitor ];
|
||||||
"emulated_hue" = ps: with ps; [ aiohttp-cors ];
|
"emulated_hue" = ps: with ps; [ aiohttp-cors ];
|
||||||
"emulated_kasa" = ps: with ps; [ sense-energy ];
|
"emulated_kasa" = ps: with ps; [ sense-energy ];
|
||||||
"emulated_roku" = ps: with ps; [ ]; # missing inputs: emulated_roku
|
"emulated_roku" = ps: with ps; [ emulated-roku ];
|
||||||
"enigma2" = ps: with ps; [ openwebifpy ];
|
"enigma2" = ps: with ps; [ openwebifpy ];
|
||||||
"enocean" = ps: with ps; [ ]; # missing inputs: enocean
|
"enocean" = ps: with ps; [ enocean ];
|
||||||
"enphase_envoy" = ps: with ps; [ envoy-reader ];
|
"enphase_envoy" = ps: with ps; [ envoy-reader ];
|
||||||
"entur_public_transport" = ps: with ps; [ ]; # missing inputs: enturclient
|
"entur_public_transport" = ps: with ps; [ ]; # missing inputs: enturclient
|
||||||
"environment_canada" = ps: with ps; [ ]; # missing inputs: env_canada
|
"environment_canada" = ps: with ps; [ ]; # missing inputs: env_canada
|
||||||
|
@ -372,6 +372,8 @@ in with py.pkgs; buildPythonApplication rec {
|
|||||||
"emonitor"
|
"emonitor"
|
||||||
"emulated_hue"
|
"emulated_hue"
|
||||||
"emulated_kasa"
|
"emulated_kasa"
|
||||||
|
"emulated_roku"
|
||||||
|
"enocean"
|
||||||
"enphase_envoy"
|
"enphase_envoy"
|
||||||
"epson"
|
"epson"
|
||||||
"esphome"
|
"esphome"
|
||||||
|
@ -55,10 +55,10 @@ let inherit (lib) optionals; in
|
|||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "connman";
|
pname = "connman";
|
||||||
version = "1.39";
|
version = "1.40";
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://kernel/linux/network/connman/${pname}-${version}.tar.xz";
|
url = "mirror://kernel/linux/network/connman/${pname}-${version}.tar.xz";
|
||||||
sha256 = "sha256-n2KnFpt0kcZwof8uM1sNlmMI+y9i4oXHgRBeuQ8YGvM=";
|
sha256 = "sha256-GleufOI0qjoXRKrDvlwhIdmNzpmUQO+KucxO39XtyxI=";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
@ -67,7 +67,7 @@ stdenv.mkDerivation rec {
|
|||||||
libmnl
|
libmnl
|
||||||
gnutls
|
gnutls
|
||||||
readline
|
readline
|
||||||
];
|
] ++ optionals (enableOpenconnect) [ openconnect ];
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
pkg-config
|
pkg-config
|
||||||
|
@ -12052,8 +12052,7 @@ in
|
|||||||
tbb = callPackage ../development/libraries/tbb { };
|
tbb = callPackage ../development/libraries/tbb { };
|
||||||
|
|
||||||
terra = callPackage ../development/compilers/terra {
|
terra = callPackage ../development/compilers/terra {
|
||||||
llvmPackages = llvmPackages_6;
|
llvmPackages = llvmPackages_10;
|
||||||
lua = lua5_1;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
teyjus = callPackage ../development/compilers/teyjus (
|
teyjus = callPackage ../development/compilers/teyjus (
|
||||||
@ -12699,6 +12698,8 @@ in
|
|||||||
inherit (gnome2) gnome_vfs libglade libgnome libgnomecanvas libgnomeui;
|
inherit (gnome2) gnome_vfs libglade libgnome libgnomecanvas libgnomeui;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
guile-json = callPackage ../development/guile-modules/guile-json { };
|
||||||
|
|
||||||
guile-lib = callPackage ../development/guile-modules/guile-lib { };
|
guile-lib = callPackage ../development/guile-modules/guile-lib { };
|
||||||
|
|
||||||
guile-ncurses = callPackage ../development/guile-modules/guile-ncurses { };
|
guile-ncurses = callPackage ../development/guile-modules/guile-ncurses { };
|
||||||
@ -17007,6 +17008,8 @@ in
|
|||||||
|
|
||||||
libvorbis = callPackage ../development/libraries/libvorbis { };
|
libvorbis = callPackage ../development/libraries/libvorbis { };
|
||||||
|
|
||||||
|
libvori = callPackage ../development/libraries/libvori { };
|
||||||
|
|
||||||
libwebcam = callPackage ../os-specific/linux/libwebcam { };
|
libwebcam = callPackage ../os-specific/linux/libwebcam { };
|
||||||
|
|
||||||
libwebp = callPackage ../development/libraries/libwebp { };
|
libwebp = callPackage ../development/libraries/libwebp { };
|
||||||
|
@ -2265,10 +2265,14 @@ in {
|
|||||||
|
|
||||||
emoji = callPackage ../development/python-modules/emoji { };
|
emoji = callPackage ../development/python-modules/emoji { };
|
||||||
|
|
||||||
|
emulated-roku = callPackage ../development/python-modules/emulated-roku { };
|
||||||
|
|
||||||
enaml = callPackage ../development/python-modules/enaml { };
|
enaml = callPackage ../development/python-modules/enaml { };
|
||||||
|
|
||||||
enamlx = callPackage ../development/python-modules/enamlx { };
|
enamlx = callPackage ../development/python-modules/enamlx { };
|
||||||
|
|
||||||
|
enocean = callPackage ../development/python-modules/enocean { };
|
||||||
|
|
||||||
enrich = callPackage ../development/python-modules/enrich { };
|
enrich = callPackage ../development/python-modules/enrich { };
|
||||||
|
|
||||||
entrance = callPackage ../development/python-modules/entrance {
|
entrance = callPackage ../development/python-modules/entrance {
|
||||||
|
Loading…
Reference in New Issue
Block a user