forked from NixOS/nixpkgs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into da/devhsell
- Loading branch information
Showing
14 changed files
with
309 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ config, lib, pkgs, ... }: | ||
|
||
with lib; | ||
let | ||
cfg = config.hardware.keyboard.teck; | ||
in | ||
{ | ||
options.hardware.keyboard.teck = { | ||
enable = mkEnableOption "non-root access to the firmware of TECK keyboards"; | ||
}; | ||
|
||
config = mkIf cfg.enable { | ||
services.udev.packages = [ pkgs.teck-udev-rules ]; | ||
}; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,25 @@ | ||
{ lib, mkDerivation, pkg-config, qmake, qttools, qtbase, qtsvg, qtx11extras, fetchFromGitHub }: | ||
{ lib, mkDerivation, cmake, hunspell, pkg-config, qttools, qtbase, qtsvg, qtx11extras | ||
, fetchFromGitHub }: | ||
|
||
mkDerivation rec { | ||
pname = "featherpad"; | ||
version = "0.10.0"; | ||
version = "0.18.0"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "tsujan"; | ||
repo = "FeatherPad"; | ||
rev = "V${version}"; | ||
sha256 = "1wrbs6kni9s3x39cckm9kzpglryxn5vyarilvh9pafbzpc6rc57p"; | ||
sha256 = "0av96yx9ir1ap5adn2cvr6n5y7qjrspk73and21m65dmpwlfdiqb"; | ||
}; | ||
|
||
nativeBuildInputs = [ qmake pkg-config qttools ]; | ||
buildInputs = [ qtbase qtsvg qtx11extras ]; | ||
nativeBuildInputs = [ cmake pkg-config qttools ]; | ||
buildInputs = [ hunspell qtbase qtsvg qtx11extras ]; | ||
|
||
meta = with lib; { | ||
description = "Lightweight Qt5 Plain-Text Editor for Linux"; | ||
homepage = "https://github.com/tsujan/FeatherPad"; | ||
platforms = platforms.linux; | ||
maintainers = [ maintainers.flosse ]; | ||
license = licenses.gpl3; | ||
license = licenses.gpl3Plus; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{ lib | ||
, fetchFromGitHub | ||
, stdenv | ||
, srt | ||
, zlib | ||
}: | ||
|
||
stdenv.mkDerivation rec { | ||
pname = "srt-live-server"; | ||
version = "1.4.8"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "Edward-Wu"; | ||
repo = "srt-live-server"; | ||
rev = "V${version}"; | ||
sha256 = "0x48sxpgxznb1ymx8shw437pcgk76ka5rx0zhn9b3cyi9jlq1yld"; | ||
}; | ||
|
||
patches = [ | ||
# https://github.com/Edward-Wu/srt-live-server/pull/94 | ||
./fix-insecure-printfs.patch | ||
]; | ||
|
||
buildInputs = [ srt zlib ]; | ||
|
||
makeFlags = [ | ||
"PREFIX=$(out)" | ||
]; | ||
|
||
meta = with lib; { | ||
description = "srt live server for low latency"; | ||
license = licenses.mit; | ||
homepage = "https://github.com/Edward-Wu/srt-live-server"; | ||
maintainers = with maintainers; [ shamilton ]; | ||
platforms = platforms.linux; | ||
}; | ||
} |
61 changes: 61 additions & 0 deletions
61
pkgs/applications/video/srt-live-server/fix-insecure-printfs.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
diff --color -ur a/Makefile b/Makefile | ||
--- a/Makefile 2021-04-16 13:02:41.416453040 +0200 | ||
+++ b/Makefile 2021-04-16 13:21:23.020089623 +0200 | ||
@@ -1,3 +1,4 @@ | ||
+PREFIX = /usr/local | ||
SHELL = /bin/sh | ||
MAIN_NAME=sls | ||
CLIENT_NAME=slc | ||
@@ -64,3 +65,16 @@ | ||
rm -f $(OUTPUT_PATH)/*.o | ||
rm -rf $(BIN_PATH)/* | ||
|
||
+install: all | ||
+ @echo installing executable files to ${DESTDIR}${PREFIX}/bin | ||
+ @mkdir -p "${DESTDIR}${PREFIX}/bin" | ||
+ @cp -f ${BIN_PATH}/${MAIN_NAME} "${DESTDIR}${PREFIX}/bin" | ||
+ @chmod 755 "${DESTDIR}${PREFIX}/bin/${MAIN_NAME}" | ||
+ @cp -f ${BIN_PATH}/${CLIENT_NAME} "${DESTDIR}${PREFIX}/bin" | ||
+ @chmod 755 "${DESTDIR}${PREFIX}/bin/${CLIENT_NAME}" | ||
+ | ||
+uninstall: | ||
+ @echo removing executable files from ${DESTDIR}${PREFIX}/bin | ||
+ @rm -f "${DESTDIR}${PREFIX}/bin/${MAIN_NAME}" | ||
+ @rm -f "${DESTDIR}${PREFIX}/bin/${CLIENT_NAME}" | ||
+ | ||
diff --color -ur a/slscore/HttpClient.cpp b/slscore/HttpClient.cpp | ||
--- a/slscore/HttpClient.cpp 2021-04-16 13:02:41.416453040 +0200 | ||
+++ b/slscore/HttpClient.cpp 2021-04-16 13:11:40.343866698 +0200 | ||
@@ -90,7 +90,7 @@ | ||
goto FUNC_END; | ||
} | ||
if (NULL != method && strlen(method) > 0) { | ||
- sprintf(m_http_method, method); | ||
+ strcpy(m_http_method, method); | ||
} | ||
|
||
m_interval = interval; | ||
diff --color -ur a/slscore/SLSLog.cpp b/slscore/SLSLog.cpp | ||
--- a/slscore/SLSLog.cpp 2021-04-16 13:02:41.416453040 +0200 | ||
+++ b/slscore/SLSLog.cpp 2021-04-16 13:08:16.836119519 +0200 | ||
@@ -85,7 +85,7 @@ | ||
vsnprintf (buf , 4095 , fmt , vl); | ||
//sprintf(buf_info, "%s %s: %s\n" , cur_time, LOG_LEVEL_NAME[level], buf); | ||
sprintf(buf_info, "%s:%03d %s %s: %s\n" , cur_time, cur_time_msec, APP_NAME, LOG_LEVEL_NAME[level], buf); | ||
- printf(buf_info); | ||
+ puts(buf_info); | ||
|
||
if (m_log_file) { | ||
fwrite(buf_info, strlen(buf_info), 1, m_log_file); | ||
diff --color -ur a/slscore/SLSSrt.cpp b/slscore/SLSSrt.cpp | ||
--- a/slscore/SLSSrt.cpp 2021-04-16 13:02:41.417452995 +0200 | ||
+++ b/slscore/SLSSrt.cpp 2021-04-16 13:10:11.004957820 +0200 | ||
@@ -124,7 +124,7 @@ | ||
std::map<int, std::string>::iterator it; | ||
for(it=map_error.begin(); it!=map_error.end(); ++it) { | ||
sprintf(szBuf, "%d: %s\n", it->first, it->second.c_str()); | ||
- printf(szBuf); | ||
+ puts(szBuf); | ||
} | ||
printf("----------end------------\n"); | ||
map_error.clear(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,14 @@ | ||
{ lib, stdenv, gnome3, fetchFromGitHub, xprop, glib }: | ||
|
||
stdenv.mkDerivation rec { | ||
pname = "gnome-shell-extension-unite"; | ||
version = "51"; | ||
version = "52"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "hardpixel"; | ||
repo = "unite-shell"; | ||
rev = "v${version}"; | ||
sha256 = "0mic7h5l19ly79l02inm33992ffkxsh618d6zbr39gvn4405g6wk"; | ||
sha256 = "1zahng79m2gw27fb2sw8zyk2n07qc0hbn02g5mfqzhwk62g97v4y"; | ||
}; | ||
|
||
uuid = "[email protected]"; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.