Hello,

I want to do a simple thing.

When running a default.nix:

   with import <nixpkgs> {};
   {
     projnameEnv = myEnvFun {
       name = "projname";
       buildInputs = [ stdenv rustcMaster cargo nanomsg];
     };
   }

then execute nix-shell I don't get an error and the rust project correctly runs.

If, however, I put nanomsg into environment.systemPackages and do not
use nix-shell

https://github.com/sjmackenzie/nixos-infrastructure/blob/master/profiles/development.nix#L31

then run the rust project (cargo run) I get this error:

... snip ...
note: /nix/store/kxf1p7l7lgm6j5mjzkiwcwzc98s9f1az-binutils-2.23.1/bin/ld:
cannot find -lnanomsg
collect2: error: ld returned 1 exit status

How do I make nanomsg linkable to the rust project via development.nix?

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

Reply via email to