{"action":"created","issue":{"url":"https://api.github.com/repos/NixOS/nixpkgs/issues/17291","repository_url":"https://api.github.com/repos/NixOS/nixpkgs","labels_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/17291/labels{/name}","comments_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/17291/comments","events_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/17291/events","html_url":"https://github.com/NixOS/nixpkgs/issues/17291","id":167772049,"number":17291,"title":"Leading dot in repo name throwing illegal name error - fetchFromBitbucket, fetchFromGitHub, nix-prefetch-git","user":{"login":"erlandsona","id":10421138,"avatar_url":"https://avatars.githubusercontent.com/u/10421138?v=3","gravatar_id":"","url":"https://api.github.com/users/erlandsona","html_url":"https://github.com/erlandsona","followers_url":"https://api.github.com/users/erlandsona/followers","following_url":"https://api.github.com/users/erlandsona/following{/other_user}","gists_url":"https://api.github.com/users/erlandsona/gists{/gist_id}","starred_url":"https://api.github.com/users/erlandsona/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erlandsona/subscriptions","organizations_url":"https://api.github.com/users/erlandsona/orgs","repos_url":"https://api.github.com/users/erlandsona/repos","events_url":"https://api.github.com/users/erlandsona/events{/privacy}","received_events_url":"https://api.github.com/users/erlandsona/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-27T05:10:27Z","updated_at":"2016-07-27T07:33:23Z","closed_at":null,"body":"Why aren't leading dots allowed in the repo name for them to be valid Nix expressions / derivations?\r\n\r\n## Issue description\r\nThe following all fail with the following ```error: illegal name: `.dotfiles` ``` \r\nnix-prefetch-git\r\nfetchFromGitHub - in nix-repl\r\nfetchFromBitbucket - in nix-repl\r\n\r\n### Steps to reproduce\r\nnix-prefetch-git https://bitbucket.org/erlandsona/.dotfiles\r\nor in a nix-repl\r\n```\r\nfetchFromBitbucket { owner = \"erlandsona\"; repo = \".dotfiles\"; rev = \"6a7f45c3d5dd73d61f2c46eb4339ae1626d58e02\"; sha256 = \"1234\"; }\r\n```\r\n\r\n\r\n## Technical details\r\n\r\n* System: NixOS in a VirtualBox machine on a 15\" MBP.\r\n* Nix version: 1.11.2\r\n* Nixpkgs version: 16.03.1083.d745044\r\n"},"comment":{"url":"https://api.github.com/repos/NixOS/nixpkgs/issues/comments/235508837","html_url":"https://github.com/NixOS/nixpkgs/issues/17291#issuecomment-235508837","issue_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/17291","id":235508837,"user":{"login":"rasendubi","id":1366419,"avatar_url":"https://avatars.githubusercontent.com/u/1366419?v=3","gravatar_id":"","url":"https://api.github.com/users/rasendubi","html_url":"https://github.com/rasendubi","followers_url":"https://api.github.com/users/rasendubi/followers","following_url":"https://api.github.com/users/rasendubi/following{/other_user}","gists_url":"https://api.github.com/users/rasendubi/gists{/gist_id}","starred_url":"https://api.github.com/users/rasendubi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rasendubi/subscriptions","organizations_url":"https://api.github.com/users/rasendubi/orgs","repos_url":"https://api.github.com/users/rasendubi/repos","events_url":"https://api.github.com/users/rasendubi/events{/privacy}","received_events_url":"https://api.github.com/users/rasendubi/received_events","type":"User","site_admin":false},"created_at":"2016-07-27T07:33:23Z","updated_at":"2016-07-27T07:33:23Z","body":"As far as I understand, the issue is caused by fact derivation names can't contain `.`. Use `name` parameter to override derivation name:\r\n```nix\r\nfetchFromBitbucket {\r\n  name = \"erlandsone-dotfiles\";\r\n  owner = \"erlandsona\";\r\n  repo = \".dotfiles\";\r\n  rev = \"6a7f45c3d5dd73d61f2c46eb4339ae1626d58e02\";\r\n  sha256 = \"1234\";\r\n}\r\n```"}}
{"actor":{"display_login":"rasendubi"}}