commit
f39e774f11
@ -0,0 +1,21 @@ |
||||
{ config, lib, pkgs, ... }: |
||||
|
||||
with lib; |
||||
let |
||||
cfg = config.hardware.keyboard.uhk; |
||||
in |
||||
{ |
||||
options.hardware.keyboard.uhk = { |
||||
enable = mkEnableOption '' |
||||
non-root access to the firmware of UHK keyboards. |
||||
You need it when you want to flash a new firmware on the keyboard. |
||||
Access to the keyboard is granted to users in the "input" group. |
||||
You may want to install the uhk-agent package. |
||||
''; |
||||
|
||||
}; |
||||
|
||||
config = mkIf cfg.enable { |
||||
services.udev.packages = [ pkgs.uhk-udev-rules ]; |
||||
}; |
||||
} |
@ -0,0 +1,26 @@ |
||||
{ lib, buildPythonApplication, fetchFromGitHub, configargparse }: |
||||
|
||||
buildPythonApplication rec { |
||||
pname = "rofi-rbw"; |
||||
version = "0.5.0"; |
||||
format = "pyproject"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "fdw"; |
||||
repo = "rofi-rbw"; |
||||
rev = version; |
||||
hash = "sha256-1RDwb8lKls6+X/XtARbi4F7sK4nT03Iy3Wb9N1LEa5o="; |
||||
}; |
||||
|
||||
propagatedBuildInputs = [ configargparse ]; |
||||
|
||||
pythonImportsCheck = [ "rofi_rbw" ]; |
||||
|
||||
meta = with lib; { |
||||
description = "Rofi frontend for Bitwarden"; |
||||
homepage = "https://github.com/fdw/rofi-rbw"; |
||||
license = licenses.mit; |
||||
maintainers = with maintainers; [ dit7ya ]; |
||||
platforms = platforms.linux; |
||||
}; |
||||
} |
@ -0,0 +1,40 @@ |
||||
{ lib |
||||
, mkDerivation |
||||
, fetchFromGitLab |
||||
, cmake |
||||
, extra-cmake-modules |
||||
, kconfig |
||||
, kio |
||||
, mauikit |
||||
}: |
||||
|
||||
mkDerivation rec { |
||||
pname = "mauikit-accounts"; |
||||
version = "2.1.1"; |
||||
|
||||
src = fetchFromGitLab { |
||||
domain = "invent.kde.org"; |
||||
owner = "maui"; |
||||
repo = "mauikit-accounts"; |
||||
rev = "v${version}"; |
||||
sha256 = "sha256-B0VmgE0L8kBOqR/lrWCHO3psCQ7GZVPIGljGAwpuymE="; |
||||
}; |
||||
|
||||
nativeBuildInputs = [ |
||||
cmake |
||||
extra-cmake-modules |
||||
]; |
||||
|
||||
buildInputs = [ |
||||
kconfig |
||||
kio |
||||
mauikit |
||||
]; |
||||
|
||||
meta = with lib; { |
||||
homepage = "https://invent.kde.org/maui/mauikit-accounts"; |
||||
description = "MauiKit utilities to handle User Accounts"; |
||||
license = licenses.lgpl2Plus; |
||||
maintainers = with maintainers; [ onny ]; |
||||
}; |
||||
} |
@ -0,0 +1,42 @@ |
||||
{ lib |
||||
, mkDerivation |
||||
, fetchFromGitLab |
||||
, cmake |
||||
, extra-cmake-modules |
||||
, kconfig |
||||
, kio |
||||
, mauikit |
||||
, syntax-highlighting |
||||
}: |
||||
|
||||
mkDerivation rec { |
||||
pname = "mauikit-texteditor"; |
||||
version = "2.1.1"; |
||||
|
||||
src = fetchFromGitLab { |
||||
domain = "invent.kde.org"; |
||||
owner = "maui"; |
||||
repo = "mauikit-texteditor"; |
||||
rev = "v${version}"; |
||||
sha256 = "sha256-C0EOc0CE6Ef7vnmOKRqTzeJUamGXsvREpHRPGTcAaIc="; |
||||
}; |
||||
|
||||
nativeBuildInputs = [ |
||||
cmake |
||||
extra-cmake-modules |
||||
]; |
||||
|
||||
buildInputs = [ |
||||
kconfig |
||||
kio |
||||
mauikit |
||||
syntax-highlighting |
||||
]; |
||||
|
||||
meta = with lib; { |
||||
homepage = "https://invent.kde.org/maui/mauikit-texteditor"; |
||||
description = "MauiKit Text Editor components"; |
||||
license = licenses.lgpl2Plus; |
||||
maintainers = with maintainers; [ onny ]; |
||||
}; |
||||
} |
@ -1,6 +0,0 @@ |
||||
{ callPackage, ... }: |
||||
|
||||
callPackage ./generic-v3.nix { |
||||
version = "3.1.0"; |
||||
sha256 = "0qlvpsmqgh9nw0k4zrxlxf75pafi3p0ahz99v6761b903y8qyv4i"; |
||||
} |
@ -1,27 +0,0 @@ |
||||
{ lib |
||||
, buildPythonPackage |
||||
, fetchurl |
||||
, fetchPypi |
||||
, isPy3k |
||||
}: |
||||
|
||||
buildPythonPackage rec { |
||||
pname = "memcached"; |
||||
version = "1.51"; |
||||
|
||||
src = if isPy3k then fetchPypi { |
||||
inherit version; |
||||
pname = "python3-${pname}"; |
||||
sha256 = "0na8b369q8fivh3y0nvzbvhh3lgvxiyyv9xp93cnkvwfsr8mkgkw"; |
||||
} else fetchurl { |
||||
url = "http://ftp.tummy.com/pub/python-memcached/old-releases/python-${pname}-${version}.tar.gz"; |
||||
sha256 = "124s98m6hvxj6x90d7aynsjfz878zli771q96ns767r2mbqn7192"; |
||||
}; |
||||
|
||||
meta = with lib; { |
||||
description = "Python API for communicating with the memcached distributed memory object cache daemon"; |
||||
homepage = "https://github.com/linsomniac/python-memcached"; |
||||
license = licenses.psfl; |
||||
}; |
||||
|
||||
} |
@ -0,0 +1,40 @@ |
||||
{ lib |
||||
, buildPythonPackage |
||||
, fetchFromGitHub |
||||
, six |
||||
, mock |
||||
, pytestCheckHook |
||||
}: |
||||
|
||||
buildPythonPackage rec { |
||||
pname = "python-memcached"; |
||||
version = "1.59"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "linsomniac"; |
||||
repo = "python-memcached"; |
||||
rev = version; |
||||
hash = "sha256-tHqkwNloPTXOrEGtuDLu1cTw4SKJ4auv8UUbqdNp698="; |
||||
}; |
||||
|
||||
propagatedBuildInputs = [ |
||||
six |
||||
]; |
||||
|
||||
checkInputs = [ |
||||
mock |
||||
pytestCheckHook |
||||
]; |
||||
|
||||
# all tests fail |
||||
doCheck = false; |
||||
|
||||
pythonImportsCheck = [ "memcache" ]; |
||||
|
||||
meta = with lib; { |
||||
description = "Pure python memcached client"; |
||||
homepage = "https://github.com/linsomniac/python-memcached"; |
||||
license = licenses.psfl; |
||||
maintainers = with maintainers; [ dotlambda ]; |
||||
}; |
||||
} |
@ -1,24 +1,48 @@ |
||||
{ lib, fetchPypi, buildPythonPackage, genshi, lxml, python-magic }: |
||||
{ lib |
||||
, buildPythonPackage |
||||
, pythonOlder |
||||
, fetchPypi |
||||
, genshi |
||||
, lxml |
||||
, pyyaml |
||||
, python-magic |
||||
, pytestCheckHook |
||||
}: |
||||
|
||||
buildPythonPackage rec { |
||||
pname = "relatorio"; |
||||
version = "0.10.0"; |
||||
version = "0.10.1"; |
||||
|
||||
disabled = pythonOlder "3.5"; |
||||
|
||||
format = "setuptools"; |
||||
|
||||
src = fetchPypi { |
||||
inherit pname version; |
||||
sha256 = "6b9390eab696bdf569639ff58794fb9ef8ff19f94feea5b505a6ba06d0cfd026"; |
||||
sha256 = "a0c72302d50d5dfa433ddab191672eec1dde1c6ed26330a378b720e5a3012e23"; |
||||
}; |
||||
|
||||
propagatedBuildInputs = [ |
||||
genshi |
||||
lxml |
||||
python-magic |
||||
]; |
||||
|
||||
passthru.extras-require = { |
||||
chart = [ /* pycha */ pyyaml ]; |
||||
fodt = [ python-magic ]; |
||||
}; |
||||
|
||||
checkInputs = [ |
||||
pytestCheckHook |
||||
] ++ passthru.extras-require.fodt; |
||||
|
||||
pythonImportsCheck = [ "relatorio" ]; |
||||
|
||||
meta = { |
||||
homepage = "https://relatorio.tryton.org/"; |
||||
changelog = "https://hg.tryton.org/relatorio/file/${version}/CHANGELOG"; |
||||
description = "A templating library able to output odt and pdf files"; |
||||
maintainers = with lib.maintainers; [ johbo ]; |
||||
license = lib.licenses.gpl3; |
||||
license = lib.licenses.gpl2Plus; |
||||
}; |
||||
} |
||||
|
@ -0,0 +1,58 @@ |
||||
{ lib |
||||
, buildPythonPackage |
||||
, fetchFromGitHub |
||||
|
||||
# build time |
||||
, setuptools-scm |
||||
|
||||
# propagates |
||||
, aiohttp |
||||
|
||||
# tests |
||||
, pytestCheckHook |
||||
}: |
||||
|
||||
let |
||||
pname = "ukrainealarm"; |
||||
version = "0.0.1"; |
||||
in |
||||
|
||||
buildPythonPackage { |
||||
inherit pname version; |
||||
format = "setuptools"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "PaulAnnekov"; |
||||
repo = pname; |
||||
rev = "v${version}"; |
||||
hash = "sha256-0gsxXQiSkJIM/I0VYsjdCCB3NjPr6QJbD/rBkGrwtW8="; |
||||
}; |
||||
|
||||
SETUPTOOLS_SCM_PRETEND_VERSION = version; |
||||
|
||||
nativeBuildInputs = [ |
||||
setuptools-scm |
||||
]; |
||||
|
||||
propagatedBuildInputs = [ |
||||
aiohttp |
||||
]; |
||||
|
||||
checkInputs = [ |
||||
pytestCheckHook |
||||
]; |
||||
|
||||
pythonImportsCheck = [ |
||||
"ukrainealarm" |
||||
"ukrainealarm.client" |
||||
]; |
||||
|
||||
meta = with lib; { |
||||
changelog = "https://github.com/PaulAnnekov/ukrainealarm/releases/tag/v${version}"; |
||||
description = "Implements api.ukrainealarm.com API that returns info about Ukraine air raid alarms"; |
||||
homepage = "https://github.com/PaulAnnekov/ukrainealarm"; |
||||
license = licenses.mit; |
||||
maintainers = with maintainers; [ hexa ]; |
||||
}; |
||||
} |
||||
|
@ -0,0 +1,39 @@ |
||||
{ appimageTools, lib, fetchurl, polkit, udev }: |
||||
let |
||||
pname = "uhk-agent"; |
||||
version = "1.5.17"; |
||||
src = fetchurl { |
||||
url = "https://github.com/UltimateHackingKeyboard/agent/releases/download/v${version}/UHK.Agent-${version}-linux-x86_64.AppImage"; |
||||
name = "${pname}-${version}.AppImage"; |
||||
sha256 = "sha256-auOoTTRmkXVDDvcmRFzQIStNlbai8bTBLb/KUjk6EAc="; |
||||
}; |
||||
|
||||
appimageContents = appimageTools.extract { |
||||
name = "${pname}-${version}"; |
||||
inherit src; |
||||
}; |
||||
in appimageTools.wrapType2 { |
||||
inherit pname version src; |
||||
|
||||
extraPkgs = pkgs: with pkgs; [ polkit udev ]; |
||||
|
||||
extraInstallCommands = '' |
||||
mv $out/bin/${pname}-${version} $out/bin/${pname} |
||||
|
||||
install -m 444 -D ${appimageContents}/${pname}.desktop -t $out/share/applications |
||||
install -m 644 -D ${appimageContents}/resources/rules/50-uhk60.rules $out/rules/50-uhk60.rules |
||||
substituteInPlace $out/share/applications/${pname}.desktop \ |
||||
--replace 'Exec=AppRun' 'Exec=${pname}' |
||||
cp -r ${appimageContents}/usr/share/icons $out/share |
||||
''; |
||||
# wrapType2 does not passthru pname+version |
||||
passthru.version = version; |
||||
|
||||
meta = with lib; { |
||||
description = "Agent is the configuration application of the Ultimate Hacking Keyboard"; |
||||
homepage = "https://github.com/UltimateHackingKeyboard/agent"; |
||||
license = licenses.unfreeRedistributable; |
||||
maintainers = with maintainers; [ ngiger ]; |
||||
platforms = [ "x86_64-linux" ]; |
||||
}; |
||||
} |
@ -0,0 +1,20 @@ |
||||
{ lib, stdenv, uhk-agent }: |
||||
|
||||
stdenv.mkDerivation { |
||||
pname = "uhk-udev-rules"; |
||||
inherit (uhk-agent) version; |
||||
|
||||
dontUnpack = true; |
||||
dontBuild = true; |
||||
installPhase = '' |
||||
runHook preInstall |
||||
install -D -m 644 ${uhk-agent.out}/rules/50-uhk60.rules $out/lib/udev/rules.d/50-uhk60.rules |
||||
runHook postInstall |
||||
''; |
||||
|
||||
meta = { |
||||
description = "udev rules for UHK keyboards from https://ultimatehackingkeyboard.com"; |
||||
inherit (uhk-agent.meta) license; |
||||
maintainers = [ lib.maintainers.ngiger ]; |
||||
}; |
||||
} |
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,20 @@ |
||||
{ lib, stdenv, fetchurl }: |
||||
|
||||
stdenv.mkDerivation rec { |
||||
pname = "bdfresize"; |
||||
version = "1.5"; |
||||
|
||||
src = fetchurl { |
||||
url = "http://openlab.ring.gr.jp/efont/dist/tools/bdfresize/${pname}-${version}.tar.gz"; |
||||
hash = "sha256-RAz8BiCgI35GNSwUoHdMqj8wWXWbCiDe/vyU6EkIl6Y="; |
||||
}; |
||||
|
||||
patches = [ ./remove-malloc-declaration.patch ]; |
||||
|
||||
meta = with lib; { |
||||
description = "Tool to resize BDF fonts"; |
||||
homepage = "http://openlab.ring.gr.jp/efont/dist/tools/bdfresize/"; |
||||
license = licenses.gpl2Only; |
||||
maintainers = with maintainers; [ malvo ]; |
||||
}; |
||||
} |
@ -0,0 +1,11 @@ |
||||
Remove an unneeded declaration of malloc so gcc doesn't complain.
|
||||
--- a/charresize.c
|
||||
+++ b/charresize.c
|
||||
@@ -46,7 +46,6 @@ static int bit[8] = { 0x80, 0x40, 0x20, 0x10, 0x08, 0x04, 0x02, 0x01 };
|
||||
void
|
||||
processChar(void)
|
||||
{
|
||||
- char *malloc();
|
||||
char *srcimage;
|
||||
int *dstgray;
|
||||
|
@ -0,0 +1,54 @@ |
||||
{ lib, stdenv, fetchFromGitLab, pkg-config, libbsd, installShellFiles }: |
||||
|
||||
stdenv.mkDerivation rec { |
||||
pname = "netcat-openbsd"; |
||||
version = "1.218-5"; |
||||
|
||||
src = fetchFromGitLab { |
||||
domain = "salsa.debian.org"; |
||||
owner = "debian"; |
||||
repo = "netcat-openbsd"; |
||||
rev = "refs/tags/debian/${version}"; |
||||
sha256 = "sha256-jEJ8x49Z1UN2qOChGp173aQuPkgl2fWwUUJgUdOv60I="; |
||||
}; |
||||
|
||||
strictDeps = true; |
||||
nativeBuildInputs = [ pkg-config installShellFiles ]; |
||||
buildInputs = [ libbsd ]; |
||||
|
||||
NIX_CFLAGS_COMPILE = [ |
||||
"-I${lib.getDev libbsd}/include/libbsd" |
||||
]; |
||||
|
||||
NIX_LDFLAGS = [ "-lbsd" ]; |
||||
|
||||
postPatch = '' |
||||
for file in $(cat debian/patches/series); do |
||||
patch -p1 < debian/patches/$file |
||||
done |
||||
''; |
||||
|
||||
installPhase = '' |
||||
runHook preInstall |
||||
|
||||
mkdir -p $out/bin |
||||
mv nc $out/bin/nc |
||||
installManPage nc.1 |
||||
|
||||
runHook postInstall |
||||
''; |
||||
|
||||
doInstallCheck = true; |
||||
installCheckPhase = '' |
||||
$out/bin/nc -h 2> /dev/null |
||||
''; |
||||
|
||||
meta = with lib; { |
||||
description = "TCP/IP swiss army knife. OpenBSD variant"; |
||||
homepage = "https://salsa.debian.org/debian/netcat-openbsd"; |
||||
maintainers = with maintainers; [ artturin ]; |
||||
license = licenses.bsd3; |
||||
platforms = platforms.unix; |
||||
mainProgram = "nc"; |
||||
}; |
||||
} |
@ -0,0 +1,43 @@ |
||||
{ buildGoModule |
||||
, fetchFromGitHub |
||||
, lib |
||||
, testers |
||||
, kubevirt |
||||
}: |
||||
|
||||
buildGoModule rec { |
||||
pname = "kubevirt"; |
||||
version = "0.52.0"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "kubevirt"; |
||||
repo = "kubevirt"; |
||||
rev = "v${version}"; |
||||
sha256 = "0ldc13nypbk3r9ihbdfibpyvzyzz4m68zzb7g6cq551ks9qdiyma"; |
||||
}; |
||||
|
||||
vendorSha256 = null; |
||||
|
||||
subPackages = [ "cmd/virtctl" ]; |
||||
|
||||
tags = [ "selinux" ]; |
||||
|
||||
ldflags = [ |
||||
"-X kubevirt.io/client-go/version.gitCommit=v${version}" |
||||
"-X kubevirt.io/client-go/version.gitTreeState=clean" |
||||
"-X kubevirt.io/client-go/version.gitVersion=v${version}" |
||||
]; |
||||
|
||||
passthru.tests.version = testers.testVersion { |
||||
package = kubevirt; |
||||
command = "virtctl version --client"; |
||||
version = "v${version}"; |
||||
}; |
||||
|
||||
meta = with lib; { |
||||
description = "Client tool to use advanced features such as console access"; |
||||
homepage = "https://kubevirt.io/"; |
||||
license = licenses.asl20; |
||||
maintainers = with maintainers; [ haslersn ]; |
||||
}; |
||||
} |
Loading…
Reference in new issue