From 961fb02d9a90a79c01cb1db21baa23681608a6d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonardo=20Eug=C3=AAnio?= Date: Sat, 23 Nov 2024 23:41:28 -0300 Subject: [PATCH] factorio: update --- pkgs/factorio-headless/default.nix | 4 ++-- pkgs/factorio-headless/update.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/factorio-headless/default.nix b/pkgs/factorio-headless/default.nix index 9e940f0..01ff2cc 100644 --- a/pkgs/factorio-headless/default.nix +++ b/pkgs/factorio-headless/default.nix @@ -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="; }; }) diff --git a/pkgs/factorio-headless/update.sh b/pkgs/factorio-headless/update.sh index 9f7bce9..2f57612 100755 --- a/pkgs/factorio-headless/update.sh +++ b/pkgs/factorio-headless/update.sh @@ -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