nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 49 lines 1.7 kB view raw
1{ 2 lib, 3 stdenvNoCC, 4 fetchurl, 5}: 6let 7 srcs = { 8 train-images = fetchurl { 9 url = "http://yann.lecun.com/exdb/mnist/train-images-idx3-ubyte.gz"; 10 sha256 = "029na81z5a1c9l1a8472dgshami6f2iixs3m2ji6ym6cffzwl3s4"; 11 }; 12 train-labels = fetchurl { 13 url = "http://yann.lecun.com/exdb/mnist/train-labels-idx1-ubyte.gz"; 14 sha256 = "0p152200wwx0w65sqb65grb3v8ncjp230aykmvbbx2sm19556lim"; 15 }; 16 test-images = fetchurl { 17 url = "http://yann.lecun.com/exdb/mnist/t10k-images-idx3-ubyte.gz"; 18 sha256 = "1rn4vfigaxn2ms24bf4jwzzflgp3hvz0gksvb8j7j70w19xjqhld"; 19 }; 20 test-labels = fetchurl { 21 url = "http://yann.lecun.com/exdb/mnist/t10k-labels-idx1-ubyte.gz"; 22 sha256 = "1imf0i194ndjxzxdx87zlgn728xx3p1qhq1ssbmnvv005vwn1bpp"; 23 }; 24 }; 25in 26stdenvNoCC.mkDerivation { 27 pname = "mnist"; 28 version = "2018-11-16"; 29 installPhase = '' 30 mkdir -p $out 31 ln -s "${srcs.train-images}" "$out/${srcs.train-images.name}" 32 ln -s "${srcs.train-labels}" "$out/${srcs.train-labels.name}" 33 ln -s "${srcs.test-images}" "$out/${srcs.test-images.name}" 34 ln -s "${srcs.test-labels}" "$out/${srcs.test-labels.name}" 35 ''; 36 dontUnpack = true; 37 meta = with lib; { 38 description = "Large database of handwritten digits"; 39 longDescription = '' 40 The MNIST database (Modified National Institute of Standards and 41 Technology database) is a large database of handwritten digits that is 42 commonly used for training various image processing systems. 43 ''; 44 homepage = "http://yann.lecun.com/exdb/mnist/index.html"; 45 license = licenses.cc-by-sa-30; 46 platforms = platforms.all; 47 maintainers = with maintainers; [ cmcdragonkai ]; 48 }; 49}