Skip to content

Commit

Permalink
factorio: give advice on how to retain source tarball (#350475)
Browse files Browse the repository at this point in the history
  • Loading branch information
Artturin authored Nov 1, 2024
2 parents 664c5ad + 36534d1 commit 2b2a853
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pkgs/by-name/fa/factorio/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,15 @@ let
nix-prefetch-url file://\''$HOME/Downloads/factorio_\''${releaseType}_x64_\''${version}.tar.xz --name factorio_\''${releaseType}_x64-\''${version}.tar.xz
Note the ultimate "_" is replaced with "-" in the --name arg!
If you go this route you might want to tell Nix to explicitly hold on to the
source tarball. Otherwise it could get GC'd from the Nix store and you'd
have to redownload it next time the package wants to rebuild to use a newer
dependency. E.g. if you're using NixOS:
system.extraDependencies = [
factorio.src
];
'';

desktopItem = makeDesktopItem {
Expand Down

0 comments on commit 2b2a853

Please sign in to comment.