1
0
forked from nikkuss/pkgs

make pkgs work!

This commit is contained in:
2025-07-29 21:42:11 +04:00
parent 8660752e1b
commit 9473348b57
4 changed files with 32 additions and 15 deletions
+3 -7
View File
@@ -13,10 +13,6 @@ let
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; };
# })
lib.makeScope newScope (self: {
ath12k-tools = self.callPackage ./ath12k-tools.nix { inherit src; };
})
@@ -34,10 +34,10 @@ stdenv.mkDerivation (
tree
];
unpackPhase = ''
msiextract -C . $src
msiextract -C . "$src"
'';
buildPhase = ''
mkdir -p $out/lib/firmware/qcom/x1e80100/microsoft/Romulus
mkdir -p "$out/lib/firmware/qcom/x1e80100/microsoft/Romulus"
for file in ${lib.concatStringsSep " " fw_files}; do
echo -e "\tSearching for $file..."
fw_path=$(find . -type f -name "$file" -print | head -n 1)
@@ -48,7 +48,7 @@ stdenv.mkDerivation (
exit 1
fi
done
cp $out/lib/firmware/qcom/x1e80100/microsoft/Romulus/qcdxkmsuc8380.mbn $out/lib/firmware/qcom/x1e80100/microsoft/qcdxkmsuc8380.mbn
cp "$out/lib/firmware/qcom/x1e80100/microsoft/Romulus/qcdxkmsuc8380.mbn" "$out/lib/firmware/qcom/x1e80100/microsoft/qcdxkmsuc8380.mbn"
'';
meta = {
platforms = [ "aarch64-linux" ];