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
> [email protected]
> 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.

Attachment: signature.asc
Description: PGP signature

_______________________________________________
nix-dev mailing list
[email protected]
http://lists.science.uu.nl/mailman/listinfo/nix-dev

Reply via email to