many changes and more modularizing
This commit is contained in:
BIN
hosts/fw-new/pkgs/foundry-vtt/FoundryVTT-12.331.zip
Normal file
BIN
hosts/fw-new/pkgs/foundry-vtt/FoundryVTT-12.331.zip
Normal file
Binary file not shown.
25
hosts/fw-new/pkgs/foundry-vtt/default.nix
Normal file
25
hosts/fw-new/pkgs/foundry-vtt/default.nix
Normal file
@@ -0,0 +1,25 @@
|
||||
{ stdenv, lib, unzip }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "foundry-vtt";
|
||||
version = "12.331";
|
||||
|
||||
src = ./FoundryVTT-12.331.zip;
|
||||
|
||||
nativeBuildInputs = [ unzip ];
|
||||
|
||||
unpackPhase = ''
|
||||
unzip $src
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/share/foundry-vtt
|
||||
cp -r . $out/share/foundry-vtt
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Tabletop simulator";
|
||||
license = licenses.mit; # Adjust as needed
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
||||
9591
hosts/fw-new/pkgs/kernel/rk35xx_vendor_config
Normal file
9591
hosts/fw-new/pkgs/kernel/rk35xx_vendor_config
Normal file
File diff suppressed because it is too large
Load Diff
4780
hosts/fw-new/pkgs/kernel/rk35xx_vendor_config.nix
Normal file
4780
hosts/fw-new/pkgs/kernel/rk35xx_vendor_config.nix
Normal file
File diff suppressed because it is too large
Load Diff
61
hosts/fw-new/pkgs/kernel/vendor.nix
Normal file
61
hosts/fw-new/pkgs/kernel/vendor.nix
Normal file
@@ -0,0 +1,61 @@
|
||||
# args of buildLinux:
|
||||
# https://github.com/NixOS/nixpkgs/blob/nixos-unstable/pkgs/os-specific/linux/kernel/generic.nix
|
||||
# Note that this method will use the deconfig in source tree,
|
||||
# commbined the common configuration defined in pkgs/os-specific/linux/kernel/common-config.nix, which is suitable for a NixOS system.
|
||||
# but it't not suitable for embedded systems, so we comment it out.
|
||||
# ================================================================
|
||||
# If you already have a generated configuration file, you can build a kernel that uses it with pkgs.linuxManualConfig
|
||||
# The difference between deconfig and the generated configuration file is that the generated configuration file is more complete,
|
||||
#
|
||||
{ fetchFromGitHub
|
||||
, linuxManualConfig
|
||||
, ubootTools
|
||||
, fetchurl
|
||||
, ...
|
||||
}:
|
||||
let
|
||||
modDirVersion = "6.1.75";
|
||||
|
||||
panthor-base = "aa54fa4e0712616d44f2c2f312ecc35c0827833d";
|
||||
panthor-head = "c81ebd8e12b64a42a6efd68cc0ed018b57d14e91";
|
||||
in
|
||||
(linuxManualConfig {
|
||||
inherit modDirVersion;
|
||||
version = "${modDirVersion}-jr-noble";
|
||||
extraMeta.branch = "6.1";
|
||||
|
||||
# https://github.com/Joshua-Riek/linux-rockchip/tree/noble
|
||||
src = fetchFromGitHub {
|
||||
owner = "Joshua-Riek";
|
||||
repo = "linux-rockchip";
|
||||
rev = "5c43412639fd134f0ba690de2108eaa7ea349e2a";
|
||||
hash = "sha256-aKm/RQTRTzLr8+ACdG6QW1LWn+ZOjQtlvU2KkZmYicg=";
|
||||
};
|
||||
|
||||
# https://github.com/hbiyik/linux/tree/rk-6.1-rkr3-panthor
|
||||
# allows usage of mainline mesa
|
||||
kernelPatches = [{
|
||||
name = "hbiyik-panthor.patch";
|
||||
# NOTE: This needs to be `fetchurl` instead of `fetchpatch`, because `fetchpatch`
|
||||
# reorders the patches, and the order matters since they're generated from commits.
|
||||
patch = fetchurl {
|
||||
url = "https://github.com/hbiyik/linux/compare/${panthor-base}...${panthor-head}.patch";
|
||||
hash = "sha256-nSfmgem0CElUHL1wXSL+9aVixeaRjcxMyey4YaNdHfc=";
|
||||
};
|
||||
extraConfig = { };
|
||||
}];
|
||||
|
||||
# Steps to the generated kernel config file
|
||||
# 1. git clone --depth 1 https://github.com/hbiyik/linux.git -b rk-6.1-rkr3-panthor
|
||||
# 2. put https://github.com/hbiyik/linux/blob/rk-6.1-rkr3-panthor/debian.rockchip/config/config.common.ubuntu to arch/arm64/configs/rk35xx_vendor_defconfig
|
||||
# 3. run `nix develop .#fhsEnv` in this project to enter the fhs test environment defined here.
|
||||
# 4. `make rk35xx_vendor_defconfig` in the kernel root directory to configure the kernel.
|
||||
# 5. Then use `make menuconfig` in kernel's root directory to view and customize the kernel(like enable/disable rknpu, rkflash, ACPI(for UEFI) etc).
|
||||
# 6. copy the generated .config to ./pkgs/kernel/rk35xx_vendor_config (also be sure to update the corresponding `.nix` file accordingly) and commit it.
|
||||
#
|
||||
configfile = ./rk35xx_vendor_config;
|
||||
config = import ./rk35xx_vendor_config.nix;
|
||||
}).overrideAttrs (old: {
|
||||
name = "k"; # dodge uboot length limits
|
||||
nativeBuildInputs = old.nativeBuildInputs ++ [ ubootTools ];
|
||||
})
|
||||
17
hosts/fw-new/pkgs/mali-firmware/default.nix
Normal file
17
hosts/fw-new/pkgs/mali-firmware/default.nix
Normal file
@@ -0,0 +1,17 @@
|
||||
{
|
||||
stdenv,
|
||||
fetchurl,
|
||||
}:
|
||||
stdenv.mkDerivation {
|
||||
pname = "mali-g610-firmware";
|
||||
version = "g21p0-01eac0";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/JeffyCN/mirrors/raw/e08ced3e0235b25a7ba2a3aeefd0e2fcbd434b68/firmware/g610/mali_csffw.bin";
|
||||
hash = "sha256-jnyCGlXKHDRcx59hJDYW3SX8NbgfCQlG8wKIbWdxLfU=";
|
||||
};
|
||||
|
||||
buildCommand = ''
|
||||
install -Dm444 $src $out/lib/firmware/mali_csffw.bin
|
||||
'';
|
||||
}
|
||||
23
hosts/fw-new/pkgs/orangepi-firmware/default.nix
Normal file
23
hosts/fw-new/pkgs/orangepi-firmware/default.nix
Normal file
@@ -0,0 +1,23 @@
|
||||
{ fetchFromGitHub, stdenvNoCC, ... }: stdenvNoCC.mkDerivation {
|
||||
pname = "orangepi-firmware";
|
||||
version = "2024.01.24";
|
||||
dontBuild = true;
|
||||
dontFixup = true;
|
||||
compressFirmware = false;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "orangepi-xunlong";
|
||||
repo = "firmware";
|
||||
rev = "76ead17a1770459560042a9a7c43fe615bbce5e7";
|
||||
hash = "sha256-mltaup92LTGbuCXeGTMdoFloX3vZRbaUFVbh6lwveFs=";
|
||||
};
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out/lib/firmware
|
||||
cp -a * $out/lib/firmware/
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
}
|
||||
Reference in New Issue
Block a user