Skip to content

Commit

Permalink
factorio: use real instead of sample in download help
Browse files Browse the repository at this point in the history
Makes it easier for the user since they should no longer have to
manually replace things.
  • Loading branch information
amarshall committed Oct 27, 2024
1 parent 2768c7d commit 68f2a9f
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions pkgs/by-name/fa/factorio/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ let

mods = args.mods or [ ];

helpMsg = ''
helpMsg = { dlName, storeName }: ''
===FETCH FAILED===
Please ensure you have set the username and token with config.nix, or
Expand All @@ -65,9 +65,7 @@ let
download the release through https://factorio.com/download , then add it to
the store using e.g.:
releaseType=alpha
version=0.17.74
nix-prefetch-url file://\''$HOME/Downloads/factorio_\''${releaseType}_x64_\''${version}.tar.xz --name factorio_\''${releaseType}_x64-\''${version}.tar.xz
nix-prefetch-url file://\''$HOME/Downloads/${dlName} --name ${storeName}
Note the ultimate "_" is replaced with "-" in the --name arg!
'';
Expand Down Expand Up @@ -146,7 +144,10 @@ let
'';
failureHook = ''
cat <<EOF
${helpMsg}
${helpMsg {
dlName = if candidateHashFilenames != [ ] then builtins.head candidateHashFilenames else name;
storeName = name;
}}
EOF
'';
})
Expand Down

0 comments on commit 68f2a9f

Please sign in to comment.