Skip to content

Instantly share code, notes, and snippets.

@yorickvP
Created May 20, 2019 16:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yorickvP/c6b0280081cd1822299edc6e7ec452fb to your computer and use it in GitHub Desktop.
Save yorickvP/c6b0280081cd1822299edc6e7ec452fb to your computer and use it in GitHub Desktop.
# get the all-cabal-files .git directory
let
url = "https://github.com/commercialhaskell/all-cabal-files";
displayrev = "e1017e420cf649cb6850d0b499cae591d888a9dd"; # rev of the 'display' branch commit
# 1vnc..x4 = echo -n ${url} | nix-hash --flat --base32 --type sha256
path = "${builtins.getEnv "HOME"}/.cache/nix/gitv2/1vncd1k9gq9imn78zxzp0kf2bphlyph471vsr2wk3sk65xi9w1x4";
in
builtins.deepSeq (builtins.deepSeq
(builtins.fetchGit { inherit url; rev = displayrev; ref = "display"; }) # first: make display branch checkout work
(builtins.fetchGit { inherit url; rev = displayrev; ref = "hackage"; }) # then fetch hackage branch
) path
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment