Skip to content

Instantly share code, notes, and snippets.

@grahamc
Created January 21, 2018 14:34
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 grahamc/9eb32a749d790e77017019abf7a611e3 to your computer and use it in GitHub Desktop.
Save grahamc/9eb32a749d790e77017019abf7a611e3 to your computer and use it in GitHub Desktop.
grahamc@Morbo> nix-build -E 'with import <nixpkgs> {}; fetchgit { url = file:///home/grahamc/projects/ofborg/ofborg/test-srcs/bare-repo; }'
these derivations will be built:
/nix/store/j4b7im43ja6qj2vrq8q8c0wq2lg1slkk-bare-repo.drv
building path(s) ‘/nix/store/fqz2iif713idd23s7si87l9pjj0hzl7i-bare-repo’
exporting file:///home/grahamc/projects/ofborg/ofborg/test-srcs/bare-repo (rev HEAD) into /nix/store/fqz2iif713idd23s7si87l9pjj0hzl7i-bare-repo
Initialized empty Git repository in /nix/store/fqz2iif713idd23s7si87l9pjj0hzl7i-bare-repo/.git/
fatal: '/home/grahamc/projects/ofborg/ofborg/test-srcs/bare-repo' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
fatal: '/home/grahamc/projects/ofborg/ofborg/test-srcs/bare-repo' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
fatal: '/home/grahamc/projects/ofborg/ofborg/test-srcs/bare-repo' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Unable to checkout HEAD from file:///home/grahamc/projects/ofborg/ofborg/test-srcs/bare-repo.
builder for ‘/nix/store/j4b7im43ja6qj2vrq8q8c0wq2lg1slkk-bare-repo.drv’ failed with exit code 1
error: build of ‘/nix/store/j4b7im43ja6qj2vrq8q8c0wq2lg1slkk-bare-repo.drv’ failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment