We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 664c5ad + 36534d1 commit 2b2a853Copy full SHA for 2b2a853
pkgs/by-name/fa/factorio/package.nix
@@ -70,6 +70,15 @@ let
70
nix-prefetch-url file://\''$HOME/Downloads/factorio_\''${releaseType}_x64_\''${version}.tar.xz --name factorio_\''${releaseType}_x64-\''${version}.tar.xz
71
72
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
+ ];
82
'';
83
84
desktopItem = makeDesktopItem {
0 commit comments