mirror of
https://github.com/Theaninova/TheaninovOS.git
synced 2025-12-12 11:36:20 +00:00
feat: update system
This commit is contained in:
@@ -1,27 +0,0 @@
|
||||
{ pkgs, lib, config, ... }:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.hardware.hid-fanatecff;
|
||||
kernel = config.boot.kernelPackages.kernel;
|
||||
fanatecKernelModule =
|
||||
pkgs.callPackage (import ./hid-fanatecff-module.nix) { kernel = kernel; };
|
||||
in {
|
||||
options.hardware.hid-fanatecff = {
|
||||
enable = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = lib.mkDoc ''
|
||||
Enables the Linux module drivers for Fanatec wheel bases.
|
||||
Works with the CSL Elite and CSL/ClubSport DD/DD Pro,
|
||||
and has experimental support for the ClubSport V2/V2.5,
|
||||
Podium DD1/DD2 and CSR Elite.
|
||||
'';
|
||||
};
|
||||
};
|
||||
config = lib.mkIf cfg.enable {
|
||||
boot = {
|
||||
extraModulePackages = [ fanatecKernelModule ];
|
||||
kernelModules = [ "hid-fanatecff" ];
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -1,36 +0,0 @@
|
||||
{ lib, stdenv, kernel, fetchFromGitHub, }:
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "hid-fanatecff";
|
||||
version = "0.1.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "gotzl";
|
||||
repo = "hid-fanatecff";
|
||||
rev = "ce894fb7bcae486978f8165e9f521e480120f98a";
|
||||
hash = "sha256-/106K52Zi4/6aWh2EwojRm370poaBHyX3Ke2j52ytdo=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = kernel.moduleBuildDependencies;
|
||||
|
||||
makeFlags = kernel.makeFlags ++ [
|
||||
"KVERSION=${kernel.modDirVersion}"
|
||||
"KERNEL_SRC=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
|
||||
];
|
||||
|
||||
installFlags = [
|
||||
"-C"
|
||||
"${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
|
||||
"M=${src}"
|
||||
"INSTALL_MOD_PATH=${placeholder "out"}"
|
||||
];
|
||||
installTargets = [ "modules_install" ];
|
||||
|
||||
meta = with lib; {
|
||||
description =
|
||||
"Linux kernel driver that aims to add support for FANATEC devices";
|
||||
homepage = "https://github.com/gotzl/hid-fanatecff";
|
||||
license = licenses.gpl2Only;
|
||||
platforms = platforms.linux;
|
||||
broken = stdenv.isAarch64;
|
||||
};
|
||||
}
|
||||
@@ -1,37 +0,0 @@
|
||||
{
|
||||
reema Web is a web client for Threema, a privacy-focussed end-to-end encrypted mobile messenger hosted and developed in Switzerland";
|
||||
homepage = "https://threema.ch/en/faq/threema_web";
|
||||
license = licenses.agpl3;
|
||||
maintainers = with maintainers; [theaninova];
|
||||
};
|
||||
};
|
||||
in
|
||||
buildNpmPackage rec {
|
||||
name = "threema-desktop";
|
||||
version = "1.2.40";
|
||||
src =
|
||||
fetchFromGitHub {
|
||||
owner = "threema-ch";
|
||||
repo = "threema-web-electron";
|
||||
rev = version;
|
||||
}
|
||||
+ "/app";
|
||||
ELECTRON_SKIP_BINARY_DOWNLOAD = "1";
|
||||
buildInputs = [
|
||||
(threema-web.overrideAttrs {
|
||||
patches = [
|
||||
"${src}/../tools/patches/patch-looks.patch"
|
||||
"${src}/../tools/patches/patch-user-agent.patch"
|
||||
];
|
||||
postBuild = ''
|
||||
# see tools/patches/post-patch-threema-web.sh
|
||||
sed -i.bak -E "s/IN_MEMORY_SESSION_PASSWORD:(true|false|0|1|\!0|\!1)/IN_MEMORY_SESSION_PASSWORD:true/g" -- *.bundle.js
|
||||
'';
|
||||
})
|
||||
];
|
||||
buildPhase = ''
|
||||
run hook preBuild
|
||||
ln -s ${threema-web}/share/threema-web ${src}/dependencies/threema-web/release/threema-web
|
||||
run hook postBuild
|
||||
'';
|
||||
}
|
||||
Reference in New Issue
Block a user