{"action":"created","issue":{"url":"https://api.github.com/repos/NixOS/nixpkgs/issues/18426","repository_url":"https://api.github.com/repos/NixOS/nixpkgs","labels_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/18426/labels{/name}","comments_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/18426/comments","events_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/18426/events","html_url":"https://github.com/NixOS/nixpkgs/pull/18426","id":175711211,"number":18426,"title":"buildImage: fix add / to end of source cp to resolve any softlinks","user":{"login":"ppickfor","id":3895529,"avatar_url":"https://avatars.githubusercontent.com/u/3895529?v=3","gravatar_id":"","url":"https://api.github.com/users/ppickfor","html_url":"https://github.com/ppickfor","followers_url":"https://api.github.com/users/ppickfor/followers","following_url":"https://api.github.com/users/ppickfor/following{/other_user}","gists_url":"https://api.github.com/users/ppickfor/gists{/gist_id}","starred_url":"https://api.github.com/users/ppickfor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ppickfor/subscriptions","organizations_url":"https://api.github.com/users/ppickfor/orgs","repos_url":"https://api.github.com/users/ppickfor/repos","events_url":"https://api.github.com/users/ppickfor/events{/privacy}","received_events_url":"https://api.github.com/users/ppickfor/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/NixOS/nixpkgs/milestones/9","html_url":"https://github.com/NixOS/nixpkgs/milestones/16.09","labels_url":"https://api.github.com/repos/NixOS/nixpkgs/milestones/9/labels","id":1599653,"number":9,"title":"16.09","description":"The next release after 16.03. Perhaps it will be 16.09","creator":{"login":"vcunat","id":1785925,"avatar_url":"https://avatars.githubusercontent.com/u/1785925?v=3","gravatar_id":"","url":"https://api.github.com/users/vcunat","html_url":"https://github.com/vcunat","followers_url":"https://api.github.com/users/vcunat/followers","following_url":"https://api.github.com/users/vcunat/following{/other_user}","gists_url":"https://api.github.com/users/vcunat/gists{/gist_id}","starred_url":"https://api.github.com/users/vcunat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vcunat/subscriptions","organizations_url":"https://api.github.com/users/vcunat/orgs","repos_url":"https://api.github.com/users/vcunat/repos","events_url":"https://api.github.com/users/vcunat/events{/privacy}","received_events_url":"https://api.github.com/users/vcunat/received_events","type":"User","site_admin":false},"open_issues":30,"closed_issues":144,"state":"open","created_at":"2016-02-23T13:45:20Z","updated_at":"2016-10-10T07:48:11Z","due_on":"2016-09-29T00:00:00Z","closed_at":null},"comments":4,"created_at":"2016-09-08T09:50:19Z","updated_at":"2016-10-10T11:28:21Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/NixOS/nixpkgs/pulls/18426","html_url":"https://github.com/NixOS/nixpkgs/pull/18426","diff_url":"https://github.com/NixOS/nixpkgs/pull/18426.diff","patch_url":"https://github.com/NixOS/nixpkgs/pull/18426.patch"},"body":"###### Motivation for this change\r\n\r\ndocker buildImage fails if multiple packages attempt to copy a symlink added a / to end of source of cp \r\n\r\ne.g\r\n\r\n```\r\nwith import  <nixpkgs> {};\r\nwith dockerTools;\r\nwith pkgs;\r\n\r\nlet\r\n  rustDtImage = buildImage {\r\n    name = \"ppickfor/nix-rustdt\";\r\n    contents = [\r\n      rustc\r\n      rustfmt\r\n      rustracer\r\n      cargo\r\n      rainicorn\r\n      eclipses.eclipse-rustdt\r\n      xorg.fontadobe100dpi.out\r\n      fontconfig.out\r\n      fontconfig.bin\r\n      findutils\r\n      coreutils\r\n      bash\r\n      less\r\n      moreutils\r\n      gnugrep\r\n    ];\r\n     /*\r\n     runAsRoot = ''\r\n        #!${stdenv.shell}\r\n        mkdir /tmp\r\n        chmod a=rwx,o+t /tmp\r\n      '';\r\n      */\r\n  };\r\nin {\r\n  rustDtDocker = rustDtImage;\r\n}\r\n```\r\n\r\n###### Things done\r\n\r\n- [ ] Tested using sandboxing\r\n  ([nix.useSandbox](http://nixos.org/nixos/manual/options.html#opt-nix.useSandbox) on NixOS,\r\n    or option `build-use-sandbox` in [`nix.conf`](http://nixos.org/nix/manual/#sec-conf-file)\r\n    on non-NixOS)\r\n- Built on platform(s)\r\n   - [ ] NixOS\r\n   - [ ] OS X\r\n   - [ x] Linux\r\n- [ ] Tested compilation of all pkgs that depend on this change using `nix-shell -p nox --run \"nox-review wip\"`\r\n- [ ] Tested execution of all binary files (usually in `./result/bin/`)\r\n- [ ] Fits [CONTRIBUTING.md](https://github.com/NixOS/nixpkgs/blob/master/.github/CONTRIBUTING.md).\r\n\r\n---\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/NixOS/nixpkgs/issues/comments/252592436","html_url":"https://github.com/NixOS/nixpkgs/pull/18426#issuecomment-252592436","issue_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/18426","id":252592436,"user":{"login":"domenkozar","id":126339,"avatar_url":"https://avatars.githubusercontent.com/u/126339?v=3","gravatar_id":"","url":"https://api.github.com/users/domenkozar","html_url":"https://github.com/domenkozar","followers_url":"https://api.github.com/users/domenkozar/followers","following_url":"https://api.github.com/users/domenkozar/following{/other_user}","gists_url":"https://api.github.com/users/domenkozar/gists{/gist_id}","starred_url":"https://api.github.com/users/domenkozar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/domenkozar/subscriptions","organizations_url":"https://api.github.com/users/domenkozar/orgs","repos_url":"https://api.github.com/users/domenkozar/repos","events_url":"https://api.github.com/users/domenkozar/events{/privacy}","received_events_url":"https://api.github.com/users/domenkozar/received_events","type":"User","site_admin":false},"created_at":"2016-10-10T11:28:21Z","updated_at":"2016-10-10T11:28:21Z","body":"@lethalman thoughts?"}}
{"actor":{"display_login":"domenkozar"}}