Correct way to install packages with Nixpacks

Ddwaynemac12/12/2022
This didn't work for me:
[phases.setup]
nixPkgs = ["...", "shared-mime-info"]


But this did:
[phases.setup]
nixPkgs = ["...", "shared-mime-info"]
cmds = ["...", "sudo apt-get install -y shared-mime-info"]


Should't they be equivalent/redundant?
Ddwaynemac12/12/2022
project ID: 469de9a8-9b00-491b-8798-ca03699b97ab
..finnian12/12/2022
You can try
..finnian12/12/2022
aptPkgs instead. nixPkgs pulls deps from the nixos store or whatnot
..finnian12/12/2022
So they arnt equivalent
ADA Dumb12/12/2022
nixpackages and apt packages are different, yes. Replace nixPkgs with aptPkgs and it should work perfectly
Ddwaynemac12/12/2022
thanks!
Ddwaynemac12/12/2022
Using aptPkgs seems to work but not reflected on this summary.
UUUnknown User12/12/2022
Message Not Public
Sign In & Join Server To View
Ddwaynemac12/12/2022
🥴sorry. Time to rest and get a bit of sun
UUUnknown User12/12/2022
2 Messages Not Public
Sign In & Join Server To View