1
0
forked from nikkuss/pkgs

base testing

This commit is contained in:
2025-07-29 14:56:24 +04:00
parent fb70cbe10a
commit 0c48addc4b
6 changed files with 224 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
{
lib,
newScope,
callPackage,
fetchFromGitHub,
...
}:
let
src = fetchFromGitHub {
owner = "qca";
repo = "qca-swiss-army-knife";
rev = "7c191e5530d32391105653b276ab587d2af9e02a";
hash = "sha256-iE4lqyr3zmLcgFnsrDvQ/CKUV15ijqmIbUIs9sgMECg=";
};
in
lib.packagesFromDirectoryRecursive {
inherit callPackage newScope;
directory = ./tools;
}
# lib.makeScope newScope (self: {
# ath12k-tools = self.callPackage ./ath12k-tools.nix { inherit src; };
# })
@@ -0,0 +1,14 @@
{ src, python3, ... }:
python3.pkgs.buildPythonApplication rec {
name = "ath12k-tools";
pyproject = false;
inherit src;
sourceRoot = "source/tools/scripts/ath12k";
installPhase = ''
install -Dm755 "ath12k-bdencoder" "$out/bin/ath12k-bdencoder"
install -Dm755 "ath12k-check" "$out/bin/ath12k-check"
install -Dm755 "ath12k-fw-repo" "$out/bin/ath12k-fw-repo"
install -Dm755 "ath12k-fwencoder" "$out/bin/ath12k-fwencoder"
'';
}