fix(tf2): unpack tarballs

This commit is contained in:
2025-09-20 19:07:55 -06:00
parent c83f5ae4b4
commit 94c2e40f9f
2 changed files with 4 additions and 3 deletions

View File

@@ -12,9 +12,10 @@ in {
(let (let
tf2pkgs = inputs.tf2-nix.packages.x86_64-linux; tf2pkgs = inputs.tf2-nix.packages.x86_64-linux;
tgz = x: pkgs.runCommand "source" {} '' tgz = x: pkgs.runCommand "source" {} ''
mkdir $out tarball="${x}"
cd $out tar xzf "$tarball"
tar xzvf "${x}" base="$(stripHash "$tarball")"
mv "''${base%.tar.gz}" $out
''; '';
my-config = tf2pkgs.mergeTf2Configs (with tf2pkgs; [ my-config = tf2pkgs.mergeTf2Configs (with tf2pkgs; [
mastercomfig.presets.medium-low mastercomfig.presets.medium-low