haskellPackages.tensorflow-mnist-input-data: link data files instead of copying

This prevents duplication in the nix store.
This commit is contained in:
Bas van Dijk 2018-09-06 08:44:19 +02:00
parent 6bd8799448
commit 641025d410

View File

@ -86,7 +86,7 @@ in
network-uri network-uri
]; ];
preConfigure = pkgs.lib.strings.concatStringsSep "\n" ( preConfigure = pkgs.lib.strings.concatStringsSep "\n" (
map (x: "cp ${x} data/$(stripHash ${x})") downloads map (x: "ln -s ${x} data/$(stripHash ${x})") downloads
); );
libraryHaskellDepends = [ base ]; libraryHaskellDepends = [ base ];
homepage = "https://github.com/tensorflow/haskell#readme"; homepage = "https://github.com/tensorflow/haskell#readme";