aboutsummaryrefslogtreecommitdiff
path: root/srcds-pkgs/depotdownloader-json/default.nix
blob: c09422dc7e1edcb17288158cc4849bf222397497 (plain)
1
2
3
4
5
6
7
8
9
10
{ depotdownloader }:
depotdownloader.overrideAttrs({ patches ? [], version, ... }: {
  patches = assert builtins.elem version [ "2.4.7" "2.5.0" ]; patches ++ [
    # with this, nix has access to the hashes in the manifest
    ./0001-emit-json-in-.DepotDownload.patch
    # the manifest can arrive out of order across requests to the same build!
    # luckily that singular reproducibility snag is patched in 1 line.
    ./0002-ProtoManifest-sort-files-in-constructor.patch
  ];
})