[Nix-dev] Nix mkDerivation from private bitbucket repo

Domen Kožar domen at dev.si
Wed Apr 8 04:06:09 CEST 2015


See https://github.com/NixOS/nixpkgs/issues/4004

On Tue, Apr 7, 2015 at 3:53 PM, 4levels <4levels at gmail.com> wrote:

> Dear Nix Devs,
>
> I've been struggling to generate a package from a private Bitbucket repo.
> I've tried fetchgit & fetchgitPrivate but I don't know if I'm using all
> the correct parameters.  I also have no idea how I can generate a sha256
> from a specific commit / branch / tag
>
> I can connect to the repo as I have added the nixops machine's ssh key to
> my bitbucket account keys, so that shouldn't be the issue.
>
> I did configure the package as follows:
>
> ```
>     let
>       mancloud = pkgs.stdenv.mkDerivation rec {
>         name= "mancloud-1.0.0";
>         src = pkgs.fetchgitPrivate {
>           url = "git at bitbucket.org:mancloud/mancloud.eu.git";
>           rev = "refs/heads/master";
>         };
>         buildPhase = "true";
>         installPhase =
>           ''
>             mkdir -p $out
>             cp -r * $out
>           '';
>       };
>     in {
>       environment.systemPackages = [ mancloud ];
>     };
> ```
>
> Kind regards,
>
> Erik
>
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20150408/d5d5080b/attachment.html 


More information about the nix-dev mailing list