Unverified Commit 2b2a8530 authored by Artturin's avatar Artturin Committed by GitHub
Browse files

factorio: give advice on how to retain source tarball (#350475)

parents 664c5ad6 36534d11
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -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 {