[Nix-dev] Why does my system rebuild rustc and cargo?

Matthias Beyer mail at beyermatthias.de
Wed Nov 25 14:02:15 CET 2015


Sure:

    { pkgs ? (import <nixpkgs> {}) }:

    let
      env = with pkgs.rustUnstable; [
        rustc
        cargo
      ];
    in

    pkgs.stdenv.mkDerivation rec {
        name = "someproject";
        src = ./.;
        version = "0.0.0";

        buildInputs = [ env ];

    }

in my default.nix in the project repository I'm doing my rust foo in.
change `rustUnstable` to `rustPlatform` and it recompiles the things.

Maybe I'm just using a deprecated way of entering my nix-shell?

On 25-11-2015 08:45:41, stewart mackenzie wrote:
> Matthias, this default.nix is for my rust setup I use everyday and do
> not have this problem.
> 
> default.nix:
> 
>  with import <nixpkgs> {};
>    {
>      rustfbpEnv = myEnvFun {
>        name = "rustfbp";
>        buildInputs = [ stdenv rustcMaster cargo nanomsg];
>      };
>    }
> 
> Would you mind sharing your default.nix to compare please.
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev

-- 
Mit freundlichen Grüßen,
Kind regards,
Matthias Beyer

Proudly sent with mutt.
Happily signed with gnupg.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
Url : http://lists.science.uu.nl/pipermail/nix-dev/attachments/20151125/637b7978/attachment-0001.bin 


More information about the nix-dev mailing list