{"action":"opened","issue":{"url":"https://api.github.com/repos/NixOS/nixpkgs/issues/11284","labels_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/11284/labels{/name}","comments_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/11284/comments","events_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/11284/events","html_url":"https://github.com/NixOS/nixpkgs/issues/11284","id":119070933,"number":11284,"title":"Why do we need a shebang in nix-prefetch-git?","user":{"login":"Fuuzetsu","id":893115,"avatar_url":"https://avatars.githubusercontent.com/u/893115?v=3","gravatar_id":"","url":"https://api.github.com/users/Fuuzetsu","html_url":"https://github.com/Fuuzetsu","followers_url":"https://api.github.com/users/Fuuzetsu/followers","following_url":"https://api.github.com/users/Fuuzetsu/following{/other_user}","gists_url":"https://api.github.com/users/Fuuzetsu/gists{/gist_id}","starred_url":"https://api.github.com/users/Fuuzetsu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fuuzetsu/subscriptions","organizations_url":"https://api.github.com/users/Fuuzetsu/orgs","repos_url":"https://api.github.com/users/Fuuzetsu/repos","events_url":"https://api.github.com/users/Fuuzetsu/events{/privacy}","received_events_url":"https://api.github.com/users/Fuuzetsu/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/NixOS/nixpkgs/labels/0.kind:%20question","name":"0.kind: question","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-26T16:03:55Z","updated_at":"2015-11-26T16:03:55Z","closed_at":null,"body":"At\r\n\r\nhttps://github.com/NixOS/nixpkgs/blob/master/pkgs/build-support/fetchgit/nix-prefetch-git#L1\r\n\r\nwe have a /bin/sh shebang without explanation for its necessity. We were just bitten by it: we have a copy of the file with some extra modifications and on my NixOS system it behaved differently inside `nix-build` than on my colleague's non-NixOS system as `/bin/sh` means something else for both of us.\r\n\r\nCan we just remove the shebang? I was told that by default (nix-provided) bash will be used to run the scripts in nix-build environment and if that's true, that's a free impurity we can remove."}}