mirror of
https://github.com/js0ny/dotfiles.git
synced 2026-03-22 10:42:42 +00:00
overlay(steamcmd): use upstream url
This commit is contained in:
parent
0ca532e432
commit
d4bf5a6d49
11 changed files with 69 additions and 2 deletions
19
nixcfgs/overlays/steamcmd.nix
Normal file
19
nixcfgs/overlays/steamcmd.nix
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
final: prev: {
|
||||
steamcmd = prev.steamcmd.overrideAttrs (
|
||||
oldAttrs: let
|
||||
url = platform: "https://steamcdn-a.akamaihd.net/client/installer/steamcmd_${platform}.tar.gz";
|
||||
srcs = {
|
||||
x86_64-darwin = prev.fetchurl {
|
||||
url = url "osx";
|
||||
hash = "sha256-jswXyJiOWsrcx45jHEhJD3YVDy36ps+Ne0tnsJe9dTs=";
|
||||
};
|
||||
x86_64-linux = prev.fetchurl {
|
||||
url = url "linux";
|
||||
hash = "sha256-zr8ARr/QjPRdprwJSuR6o56/QVXl7eQTc7V5uPEHHnw=";
|
||||
};
|
||||
};
|
||||
in {
|
||||
src = srcs.${prev.stdenv.hostPlatform.system} or (throw "Unsupported system: ${prev.stdenv.hostPlatform.system}");
|
||||
}
|
||||
);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue