Skip to content

Commit 2b2a853

Browse files
authored
factorio: give advice on how to retain source tarball (#350475)
2 parents 664c5ad + 36534d1 commit 2b2a853

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

pkgs/by-name/fa/factorio/package.nix

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,15 @@ let
7070
nix-prefetch-url file://\''$HOME/Downloads/factorio_\''${releaseType}_x64_\''${version}.tar.xz --name factorio_\''${releaseType}_x64-\''${version}.tar.xz
7171
7272
Note the ultimate "_" is replaced with "-" in the --name arg!
73+
74+
If you go this route you might want to tell Nix to explicitly hold on to the
75+
source tarball. Otherwise it could get GC'd from the Nix store and you'd
76+
have to redownload it next time the package wants to rebuild to use a newer
77+
dependency. E.g. if you're using NixOS:
78+
79+
system.extraDependencies = [
80+
factorio.src
81+
];
7382
'';
7483

7584
desktopItem = makeDesktopItem {

0 commit comments

Comments
 (0)