factorio: update
This commit is contained in:
parent
ed042e52f8
commit
961fb02d9a
|
@ -1,10 +1,10 @@
|
|||
{ factorio-headless, pkgs }:
|
||||
|
||||
factorio-headless.overrideAttrs (_: rec {
|
||||
version = "2.0.15";
|
||||
version = "2.0.20";
|
||||
src = pkgs.fetchurl {
|
||||
name = "factorio_headless_x64-${version}.tar.xz";
|
||||
url = "https://www.factorio.com/get-download/${version}/headless/linux64";
|
||||
hash = "sha256-cLRBy4B4EaYFhsARBySMHY164EO9HyNnX8kk+6qlONg=";
|
||||
hash = "sha256-xKkB8vHb7btBZUVg20xvq2g6MMIDNOgF1O90DAQWUVo=";
|
||||
};
|
||||
})
|
||||
|
|
|
@ -10,5 +10,5 @@ current_hash="$(rg '^.*?hash\s*=\s*"(.+)".*?$' --replace '$1' ./default.nix)"
|
|||
new_version="$(curl https://factorio.com/api/latest-releases | jq -r .stable.headless)"
|
||||
new_hash="$(nix-hash --to-sri --type sha256 $(nix-prefetch-url --type sha256 https://www.factorio.com/get-download/${new_version}/headless/linux64))"
|
||||
|
||||
sd "$current_version" "$new_version" ./default.nix
|
||||
sd "$current_hash" "$new_hash" ./default.nix
|
||||
sd --fixed-strings "$current_version" "$new_version" ./default.nix
|
||||
sd --fixed-strings "$current_hash" "$new_hash" ./default.nix
|
||||
|
|
Loading…
Reference in a new issue