citadel

My dotfiles, scripts and nix configs
git clone git://jb55.com/citadel
Log | Files | Refs | README | LICENSE

nix-build-cache (502B)


      1 #!/usr/bin/env bash
      2 printf "building cache of nixpkgs\n" >&2
      3 nix-env -f $NIXPKGS -qaP \* > /tmp/search1 &
      4 printf "building cache of haskellPackages\n" >&2
      5 nix-env -f $NIXPKGS -qaPA haskellPackages > /tmp/search2 &
      6 printf "building cache of perlPackages\n" >&2
      7 nix-env -f $NIXPKGS -qaPA perlPackages > /tmp/search3 &
      8 printf "building cache of linuxPackages\n" >&2
      9 nix-env -f $NIXPKGS -qaPA linuxPackages > /tmp/search4 &
     10 wait
     11 cat /tmp/search{1,2,3,4} | sort > ~/.nixenv.cache
     12 rm -f /tmp/search{1,2,3,4}