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
tf2pkgs = inputs.tf2-nix.packages.x86_64-linux;
tgz = x: pkgs.runCommand "source" {} ''
mkdir $out
cd $out
tar xzvf "${x}"
tarball="${x}"
tar xzf "$tarball"
base="$(stripHash "$tarball")"
mv "''${base%.tar.gz}" $out
'';
my-config = tf2pkgs.mergeTf2Configs (with tf2pkgs; [
mastercomfig.presets.medium-low