forked from nikkuss/pkgs
make pkgs work!
This commit is contained in:
@@ -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" ];
|
||||
|
||||
Reference in New Issue
Block a user