Created
October 23, 2024 10:43
-
-
Save thomasjm/52217895ba0cf551179b67085b79a628 to your computer and use it in GitHub Desktop.
Repro for nix-prefetch-git error
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bwrap \ | |
--dev /dev \ | |
--proc /proc \ | |
--clearenv \ | |
--new-session \ | |
--tmpfs /tmp \ | |
--setenv TMPDIR /tmp \ | |
--setenv USER user \ | |
--tmpfs /homeless-shelter \ | |
--setenv HOME /homeless-shelter \ | |
--setenv NIX_PATH $'nixpkgs=/bootstrap-nixpkgs' \ | |
--unshare-pid \ | |
--ro-bind /nix/store /nix/store \ | |
--ro-bind $(nix eval nixpkgs#pkgs.path) /bootstrap-nixpkgs \ | |
--ro-bind $(nix build nixpkgs#coreutils --json | jq -r '.[0].outputs.out')/bin /bin \ | |
--ro-bind $(nix build nixpkgs#nix-prefetch-git --json | jq -r '.[0].outputs.out')/bin /bin2 \ | |
--ro-bind $(nix build nixpkgs#cacert --json | jq -r '.[0].outputs.out')/etc/ssl/certs/ca-bundle.crt /etc/ssl/certs/ca-certificates.crt \ | |
--setenv PATH /bin:/bin2 \ | |
--setenv NIX_SSL_CERT_FILE /etc/ssl/certs/ca-certificates.crt \ | |
--setenv CURL_CA_BUNDLE /etc/ssl/certs/ca-certificates.crt \ | |
--ro-bind /etc/resolv.conf /etc/resolv.conf nix-prefetch-git \ | |
--rev 1f47a0710bfe94273c060452d753e19a94f6975d $'https://github.com/codedownio/codedown-languages.git' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment